From b07f3675e84908cb3e44a2418328132b92321d94 Mon Sep 17 00:00:00 2001 From: Aljoscha Poertner Date: Fri, 13 Oct 2023 11:39:00 +0200 Subject: [PATCH] ci: build nightly for amd64 and arm64 Signed-off-by: Aljoscha Poertner --- .github/workflows/build.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) 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