diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1cd98a3..0b4f2d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,6 +45,12 @@ jobs: name: Build a nightly version of runo runs-on: ubuntu-latest needs: coverage + strategy: + fail-fast: false + matrix: + platform: + - aarch64-unknown-linux-gnu + - x86_64-unknown-linux-gnu steps: - name: Checkout repository uses: actions/checkout@v4 @@ -52,16 +58,20 @@ jobs: uses: actions-rs/toolchain@v1 with: toolchain: stable + target: {{ matrix.platform }} override: true - - name: Build binary - run: cargo build + - uses: actions-rs/cargo@v1 + with: + use-cross: true + command: build + args: --target {{ matrix.platform }} - name: Compress binary - run: zip target/debug/runo.zip target/debug/runo + run: zip target/{{ matrix.platform }}/debug/runo.zip target/{{ matrix.platform }}/debug/runo - name: Archive artifacts uses: actions/upload-artifact@v3 with: name: binary - path: target/debug/runo.zip + path: target/{{ matrix.platform }}/debug/runo.zip retention-days: 30 image: name: Build and push image