Skip to content

Commit

Permalink
ci: build nightly for amd64 and arm64
Browse files Browse the repository at this point in the history
Signed-off-by: Aljoscha Poertner <[email protected]>
  • Loading branch information
aljoshare committed Oct 13, 2023
1 parent ac64283 commit b07f367
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,33 @@ 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
- name: Install stable toolchain
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
Expand Down

0 comments on commit b07f367

Please sign in to comment.