Skip to content

Commit 925694b

Browse files
committed
update ubuntu for aarch64
1 parent 25eb63e commit 925694b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
matrix:
1818
include:
1919
- { os: ubuntu-20.04, target: x86_64-unknown-linux-gnu, platform: linux-x64, cross: general }
20-
- { os: ubuntu-20.04, target: aarch64-unknown-linux-gnu, platform: linux-arm64, cross: aarch64 }
20+
- { os: ubuntu-22.04, target: aarch64-unknown-linux-gnu, platform: linux-arm64, cross: aarch64 }
2121
- { os: ubuntu-20.04, target: x86_64-unknown-linux-musl, platform: linux-musl, cross: musl }
22-
- { os: ubuntu-20.04, target: x86_64-unknown-freebsd, platform: linux-bsd, cross: bsd }
22+
- { os: ubuntu-22.04, target: x86_64-unknown-freebsd, platform: linux-bsd, cross: bsd }
2323
- { os: macos-latest, target: x86_64-apple-darwin, platform: darwin-x64, cross: general }
2424
- { os: macos-latest, target: aarch64-apple-darwin, platform: darwin-arm64, cross: general }
2525
- { os: windows-latest, target: x86_64-pc-windows-msvc, platform: win32-x64, cross: general }
@@ -44,7 +44,7 @@ jobs:
4444
- name: Build - aarch64
4545
if: ${{ matrix.cross == 'aarch64' }}
4646
run: |
47-
sudo apt-get update
48-
sudo apt-get install -y gcc-aarch64-linux-gnu libc6-dev-arm64-cross g++-aarch64-linux-gnu
47+
cargo install cross
48+
cross build --release --target ${{ matrix.target }} --target-dir target/${{ matrix.platform }}
4949
5050

0 commit comments

Comments
 (0)