diff --git a/.github/workflows/pm-ci.yml b/.github/workflows/pm-ci.yml index 7f33e0bf2..18dde9184 100644 --- a/.github/workflows/pm-ci.yml +++ b/.github/workflows/pm-ci.yml @@ -26,6 +26,11 @@ jobs: test: | cargo test -p utoo-pm --target x86_64-unknown-linux-gnu -- --nocapture + - host: ubuntu-22.04-arm + target: aarch64-unknown-linux-gnu + test: | + cargo test -p utoo-pm --target aarch64-unknown-linux-gnu -- --nocapture + name: utoopm-ci-${{ matrix.settings.target }} runs-on: ${{ matrix.settings.host }} steps: diff --git a/.github/workflows/pm-release.yml b/.github/workflows/pm-release.yml index f25c9df0a..19309fa7a 100644 --- a/.github/workflows/pm-release.yml +++ b/.github/workflows/pm-release.yml @@ -26,6 +26,11 @@ jobs: platform_os: darwin platform_cpu: arm64 + - os: ubuntu-22.04-arm + target: aarch64-unknown-linux-gnu + platform_os: linux + platform_cpu: arm64 + runs-on: ${{ matrix.os }} container: image: ${{ matrix.container }} @@ -38,7 +43,7 @@ jobs: steps: - name: Install Linux Dependencies - if: ${{ matrix.platform_os == 'linux' }} + if: ${{ matrix.platform_os == 'linux' && matrix.platform_cpu == 'x64' }} env: DEBIAN_FRONTEND: noninteractive run: | @@ -91,6 +96,10 @@ jobs: if: ${{ matrix.target == 'x86_64-apple-darwin' }} run: rustup target add x86_64-apple-darwin + - name: Add cross-compilation target for aarch64 on Linux + if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }} + run: rustup target add aarch64-unknown-linux-gnu + - name: Add SSH private keys for submodule repositories uses: webfactory/ssh-agent@v0.7.0 with: diff --git a/vendor/templates/utoo.package.json.template b/vendor/templates/utoo.package.json.template index dde74343a..8dee7adf5 100644 --- a/vendor/templates/utoo.package.json.template +++ b/vendor/templates/utoo.package.json.template @@ -13,6 +13,7 @@ }, "optionalDependencies": { "@utoo/utoo-linux-x64": "{{version}}", + "@utoo/utoo-linux-arm64": "{{version}}", "@utoo/utoo-darwin-x64": "{{version}}", "@utoo/utoo-darwin-arm64": "{{version}}" },