summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-09-25 16:07:30 +0800
committerGitHub <noreply@github.com>2025-09-25 16:07:30 +0800
commitb198da78558165ccc7297c81e31ff5480ad3b6ca (patch)
tree8add4a8e6b85eb5b5d69a299aaff9f672e5d3fae
parentfbaefe54f7754946fff624f3efeab07896d0fd4e (diff)
parente22bed0c8f6b052fd3b39cb20cc3aea9b0f72dc8 (diff)
Merge pull request #4 from JustEnoughVCS/jvcs_dev
Jvcs dev
-rw-r--r--.github/workflows/rust.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index f91f752..c648754 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -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
@@ -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
@@ -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