summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-09-20 23:37:12 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-09-20 23:37:34 +0800
commit8cdda8a10c563b3d6e6e306c421583f1ade3e6c1 (patch)
tree87348dd525afd46a0507cf2df33f0eaf472367ae /.github
parent6511f6aaf68c3ab3bce10cdd743936b28e45dfa9 (diff)
ci: fix on triggers and fix nightly
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/rust.yml11
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