Skip to content

Commit 907d218

Browse files
Update GitHub Actions workflows to use dynamic release names for built binaries
1 parent cff1a39 commit 907d218

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/nightly.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,21 @@ permissions:
99
contents: write
1010

1111

12-
1312
jobs:
1413
build:
1514
runs-on: ${{ matrix.os }}
1615
strategy:
1716
matrix:
18-
os: [ubuntu-latest, windows-latest, macos-latest]
1917
include:
2018
- os: ubuntu-latest
2119
target: x86_64-unknown-linux-gnu
20+
release_name: ComputerUseAgent-linux
2221
- os: windows-latest
2322
target: x86_64-pc-windows-msvc
23+
release_name: ComputerUseAgent-windows
2424
- os: macos-latest
2525
target: x86_64-apple-darwin
26+
release_name: ComputerUseAgent-macos
2627

2728
steps:
2829
- uses: actions/checkout@v4
@@ -43,7 +44,7 @@ jobs:
4344
echo "version=${LATEST_TAG}-${COMMIT_HASH}" >> $GITHUB_OUTPUT
4445
4546
- name: Build binary
46-
run: deno compile --allow-all --target ${{ matrix.target }} --output ComputerUseAgent src/main.ts
47+
run: deno compile --allow-all --target ${{ matrix.target }} --output ${{ matrix.release_name }} src/main.ts
4748

4849
- name: Upload Release Asset
4950
uses: softprops/action-gh-release@v2

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@ jobs:
1616
include:
1717
- os: ubuntu-latest
1818
target: x86_64-unknown-linux-gnu
19+
release_name: ComputerUseAgent-linux
1920
- os: windows-latest
2021
target: x86_64-pc-windows-msvc
22+
release_name: ComputerUseAgent-windows
2123
- os: macos-latest
2224
target: x86_64-apple-darwin
25+
release_name: ComputerUseAgent-macos
2326

2427
steps:
2528
- uses: actions/checkout@v4
@@ -30,7 +33,7 @@ jobs:
3033
deno-version: v2.x
3134

3235
- name: Build binary
33-
run: deno compile --allow-all --target ${{ matrix.target }} --output ComputerUseAgent src/main.ts
36+
run: deno compile --allow-all --target ${{ matrix.target }} --output ${{ matrix.release_name }} src/main.ts
3437

3538
- name: Upload Release Asset
3639
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)