diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-09-20 23:37:12 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-09-20 23:37:12 +0800 |
| commit | 6ba037fe8810b64a47cbf9baa0f914e08719e6dc (patch) | |
| tree | 0747994b5ca4e4b3404dbbfb3ea84f2ac9b45f02 /.github | |
| parent | d89e472ddd16e87fe9c99a7046b7550ef8e7d752 (diff) | |
ci: fix on triggers and fix nightly
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/rust.yml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 488e737..e0a61fd 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,9 +2,11 @@ name: Rust on: push: - branches: ["main"] + paths: + - "src/*.rs" pull_request: - branches: ["main"] + paths: + - "src/*.rs" env: CARGO_TERM_COLOR: always @@ -15,6 +17,11 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install nightly toolchain + run: | + rustup toolchain install nightly --profile minimal + rustup default nightly + rustup component add clippy rustfmt || true - name: Build run: cargo build --verbose - name: Run tests |
