From 8cdda8a10c563b3d6e6e306c421583f1ade3e6c1 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 20 Sep 2025 23:37:12 +0800 Subject: ci: fix on triggers and fix nightly --- .github/workflows/rust.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to '.github') 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 -- cgit v1.2.3