diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 937332b..46fda0e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -17,6 +17,9 @@ jobs: - os: ubuntu-latest target: x86_64-unknown-linux-gnu deb: true + - os: ubuntu-latest + target: aarch64-unknown-linux-gnu + deb: true - os: macos-latest target: x86_64-apple-darwin - os: macos-latest @@ -39,18 +42,24 @@ jobs: override: true target: ${{ matrix.target }} - # will need to static link openssl - # - name: install cross - # if: ${{ runner.os == 'Linux' }} - # uses: actions-rs/cargo@v1 - # with: - # command: install - # args: cross --locked + - name: install cross + if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }} + uses: actions-rs/cargo@v1 + with: + command: install + args: cross --locked - name: build + if: ${{ matrix.target != 'aarch64-unknown-linux-gnu' }} run: cargo build --release --all-features --locked --target ${{ matrix.target }} + - name: build (cross) + if: ${{ matrix.target == 'aarch64-unknown-linux-gnu' }} + run: > + cross build --release --locked --target ${{ matrix.target }} + --features=runtime-rules,request-ai + - name: install cargo-deb if: ${{ matrix.deb == true }} uses: actions-rs/install@v0.1