Skip to content

Commit

Permalink
build(ci): add paths and update to actions/checkout@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Sep 25, 2024
1 parent 889c30f commit 24e4d60
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Rust
on:
push:
branches: [ "master" ]
paths:
- '**.rs'
- 'Cargo.toml'
pull_request:
branches: [ "master" ]

Expand All @@ -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

0 comments on commit 24e4d60

Please sign in to comment.