From 24e4d6023d8b7918f233284808fa875096d3ea33 Mon Sep 17 00:00:00 2001 From: Libing Chen Date: Wed, 25 Sep 2024 22:05:50 +0800 Subject: [PATCH] build(ci): add paths and update to actions/checkout@v4 --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d7eaf66..8fef449 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,9 @@ name: Rust on: push: branches: [ "master" ] + paths: + - '**.rs' + - 'Cargo.toml' pull_request: branches: [ "master" ] @@ -13,13 +16,13 @@ jobs: build-unbuntu: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build run: cargo build --verbose build-windows: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build run: cargo build --verbose