Skip to content

Commit 54f9632

Browse files
committed
chore: linux arm64
1 parent d5d5bed commit 54f9632

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

.github/workflows/pm-ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
test: |
2727
cargo test -p utoo-pm --target x86_64-unknown-linux-gnu -- --nocapture
2828
29+
- host: ubuntu-22.04-arm
30+
target: aarch64-unknown-linux-gnu
31+
test: |
32+
cargo test -p utoo-pm --target aarch64-unknown-linux-gnu -- --nocapture
33+
2934
name: utoopm-ci-${{ matrix.settings.target }}
3035
runs-on: ${{ matrix.settings.host }}
3136
steps:

.github/workflows/pm-release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ jobs:
2626
platform_os: darwin
2727
platform_cpu: arm64
2828

29+
- os: ubuntu-22.04-arm
30+
target: aarch64-unknown-linux-gnu
31+
platform_os: linux
32+
platform_cpu: arm64
33+
2934
runs-on: ${{ matrix.os }}
3035
container:
3136
image: ${{ matrix.container }}
@@ -38,7 +43,7 @@ jobs:
3843

3944
steps:
4045
- name: Install Linux Dependencies
41-
if: ${{ matrix.platform_os == 'linux' }}
46+
if: ${{ matrix.platform_os == 'linux' && matrix.platform_cpu == 'x64' }}
4247
env:
4348
DEBIAN_FRONTEND: noninteractive
4449
run: |
@@ -91,6 +96,10 @@ jobs:
9196
if: ${{ matrix.target == 'x86_64-apple-darwin' }}
9297
run: rustup target add x86_64-apple-darwin
9398

99+
- name: Add cross-compilation target for aarch64 on Linux
100+
if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }}
101+
run: rustup target add aarch64-unknown-linux-gnu
102+
94103
- name: Add SSH private keys for submodule repositories
95104
uses: webfactory/ssh-agent@v0.7.0
96105
with:

vendor/templates/utoo.package.json.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"optionalDependencies": {
1515
"@utoo/utoo-linux-x64": "{{version}}",
16+
"@utoo/utoo-linux-arm64": "{{version}}",
1617
"@utoo/utoo-darwin-x64": "{{version}}",
1718
"@utoo/utoo-darwin-arm64": "{{version}}"
1819
},

0 commit comments

Comments
 (0)