Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: release with tag #4

Merged
merged 1 commit into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:

- name: Build
run: |
tools/linux/ci.sh
tools/linux/ci.sh ${{ matrix.arch }} ${{ steps.tag.outputs.tag }}

- name: Upload artifact
uses: actions/[email protected]
Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
arch: ${{ matrix.arch }}
- name: Build
run: |
powershell tools/windows/ci.ps1
powershell tools/windows/ci.ps1 ${{ matrix.arch }} ${{ steps.tag.outputs.tag }}

- name: Upload artifact
uses: actions/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion tools/linux/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ cmake ..
make
cd $root_dir
mkdir -p tmp/build
mv build/*.node tmp/build/telecord-native-linux.node
mv build/*.node "tmp/build/telecord-native-linux-$1-$2.node"
3 changes: 2 additions & 1 deletion tools/windows/ci.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
param($arch, $tag)
$root_dir = Resolve-Path (Join-Path $PSScriptRoot "../../")

cd $root_dir
Expand All @@ -6,7 +7,7 @@ try
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -S"$root_dir" -B"$root_dir/build" -G Ninja
cmake --build "$root_dir/build" --config Debug --target nt_native --
mkdir "$root_dir/tmp/build"
mv "$root_dir/build/nt_native.node" "$root_dir/tmp/build/telecord-native-win32.node"
mv "$root_dir/build/nt_native.node" "$root_dir/tmp/build/telecord-native-win32-$arch-$tag.node"
}catch{
exit 1
}
Loading