Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Emre YILMAZ <[email protected]>
  • Loading branch information
delirehberi committed May 27, 2024
1 parent 1721246 commit bba6a1b
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{matrix.target}}
container: ${{matrix.container}}
name: dist (${{matrix.target}})

strategy:
matrix:
Expand All @@ -37,6 +39,25 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust toolchain
run: |
rustup update --no-self-update stable
rustup target add ${{ matrix.target }}
rustup component add rust-src
- name: Update apt repositories
if: matrix.target == 'aarch64-unknown-linux-gnu' || matrix.target == 'arm-unknown-linux-gnueabihf'
run: sudo apt-get update


- name: Install AArch64 target toolchain
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: sudo apt-get install gcc-aarch64-linux-gnu

- name: Install ARM target toolchain
if: matrix.target == 'arm-unknown-linux-gnueabihf'
run: sudo apt-get install gcc-arm-linux-gnueabihf


- name: Build
run: cargo build --release --target ${{ matrix.target }}

Expand Down

0 comments on commit bba6a1b

Please sign in to comment.