Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
with:
toolchain: stable
targets: x86_64-unknown-linux-musl
- name: Install musl development tools
run: sudo apt-get update && sudo apt-get install -y musl-tools
- name: Generate cache key
id: cache-key
run: echo "value=cargo-$(rustc -V | sed 's/.*(\(.*\))/\1/')-$(sha256sum Cargo.lock | cut -d' ' -f1)" >> $GITHUB_OUTPUT
Expand All @@ -46,8 +48,6 @@ jobs:
components: clippy, rustfmt
- name: Run clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Check formatting
run: cargo fmt --check

test:
runs-on: ubuntu-latest
Expand All @@ -64,8 +64,10 @@ jobs:
~/.cargo/git
target
key: ${{ needs.setup.outputs.cache-key }}-test
- name: Install musl target
run: rustup target add x86_64-unknown-linux-musl
- name: Install musl target and tools
run: |
rustup target add x86_64-unknown-linux-musl
sudo apt-get update && sudo apt-get install -y musl-tools
- name: Build
run: cargo build --workspace --verbose
- name: Run tests
Expand Down
Loading