Skip to content

Fix apt-install

Fix apt-install #11

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose
release-linux:
strategy:
matrix:
target:
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
name: Build ${{ matrix.target }} release binary
runs-on: ubuntu-latest
needs:
- test
steps:
- uses: actions/checkout@v4
- name: Setup Rust target
run: |
apt install -y gcc-aarch64-linux-gnu
rustup target add ${{ matrix.target }}
- name: Build
run: cargo build --target=${{ matrix.target }} --release