Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
chore: adding aarch64 image (#393)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Paitrault <simon.paitrault@gmail.com>
  • Loading branch information
Freyskeyd authored Dec 5, 2023
1 parent 6982d33 commit 9f48dc8
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,40 @@ jobs:
runs-on: ubuntu-latest-16-core
strategy:
matrix:
target: [ x86_64-unknown-linux-gnu ]
include:
- build: stable-x86
rust: stable
target: i686-unknown-linux-gnu
- build: stable-aarch64
rust: stable
target: aarch64-unknown-linux-gnu
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install-rust
with:
toolchain: ${{ matrix.rust }}
target: ${{ matrix.target }}
AWS_ACCESS_KEY_ID: ${{ secrets.ROBOT_AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{ secrets.ROBOT_AWS_SECRET_ACCESS_KEY}}

- name: Set target variables
shell: bash
run: |
echo "TARGET_FLAGS=--target ${{ matrix.target }}" >> $GITHUB_ENV
echo "TARGET_DIR=./target/${{ matrix.target }}" >> $GITHUB_ENV
- name: Show command used for Cargo
shell: bash
run: |
echo "target flag is: ${{ env.TARGET_FLAGS }}"
echo "target dir is: ${{ env.TARGET_DIR }}"
- name: cargo build (release) for ${{ matrix.target }}
run: cargo build --release --target=${{ matrix.target }}
shell: bash
run: |
cargo build --release ${{ env.TARGET_FLAGS }}
bin="target/${{ matrix.target }}/release/topos"
echo "BIN=$bin" >> $GITHUB_ENV
- name: Rename binary
shell: bash
Expand Down

0 comments on commit 9f48dc8

Please sign in to comment.