Skip to content

Commit 3e4db80

Browse files
committed
Update GitHub workflow for ARM64 build, and fix errors
1 parent c3274ef commit 3e4db80

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

.github/workflows/Build.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,36 @@ jobs:
3232
include:
3333
- os: ubuntu-latest
3434
target: x86_64-unknown-linux-gnu
35-
artifact-name: ubuntu-x86_64-gnu
35+
artifact-name: ubuntu-x64
36+
prebuild-config: |
37+
sudo apt-get update
38+
sudo apt-get install -y libasound2-dev
39+
40+
- os: ubuntu-24.04-arm
41+
target: aarch64-unknown-linux-gnu
42+
artifact-name: ubuntu-arm64
3643
prebuild-config: |
3744
sudo apt-get update
3845
sudo apt-get install -y libasound2-dev
3946
4047
- os: windows-latest
4148
target: x86_64-pc-windows-msvc
42-
artifact-name: windows-x86_64-msvc
49+
artifact-name: windows-x64
4350
prebuild-config:
4451

45-
- os: macos-latest
52+
- os: windows-11-arm
53+
target: aarch64-pc-windows-msvc
54+
artifact-name: windows-arm64
55+
prebuild-config:
56+
57+
- os: macos-15-intel
4658
target: x86_64-apple-darwin
47-
artifact-name: macos-x86_64
59+
artifact-name: macos-x64
60+
prebuild-config:
61+
62+
- os: macos-latest
63+
target: aarch64-apple-darwin
64+
artifact-name: macos-arm64
4865
prebuild-config:
4966

5067
steps:
@@ -72,7 +89,7 @@ jobs:
7289
run: cargo test --release
7390

7491
- name: Upload artifact
75-
uses: actions/upload-artifact@v3
92+
uses: actions/upload-artifact@v4
7693
with:
7794
name: ${{ matrix.artifact-name }}
7895
path: target/${{ matrix.target }}/release/code-radio${{ env.EXE }}

.github/workflows/Publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: cargo publish --token ${{ secrets.CARGO_TOKEN }}
3636

3737
- name: Publish to WinGet
38-
uses: vedantmgoyal2009/winget-releaser@v2
38+
uses: vedantmgoyal2009/winget-releaser@main
3939
with:
4040
identifier: JasonWei512.code-radio-cli
4141
installers-regex: '\.exe$' # Only .exe files

0 commit comments

Comments
 (0)