chore: update github workflows
024169ff
2 file(s) · +35 −1
| 1 | + | name: CI |
|
| 2 | + | ||
| 3 | + | on: |
|
| 4 | + | pull_request: |
|
| 5 | + | branches: |
|
| 6 | + | - main |
|
| 7 | + | ||
| 8 | + | jobs: |
|
| 9 | + | check: |
|
| 10 | + | name: Check & Build |
|
| 11 | + | runs-on: ubuntu-latest |
|
| 12 | + | steps: |
|
| 13 | + | - uses: actions/checkout@v6 |
|
| 14 | + | with: |
|
| 15 | + | submodules: recursive |
|
| 16 | + | ||
| 17 | + | - name: Install Rust toolchain |
|
| 18 | + | uses: dtolnay/rust-toolchain@stable |
|
| 19 | + | ||
| 20 | + | - name: Cache cargo registry & build |
|
| 21 | + | uses: actions/cache@v4 |
|
| 22 | + | with: |
|
| 23 | + | path: | |
|
| 24 | + | ~/.cargo/registry |
|
| 25 | + | ~/.cargo/git |
|
| 26 | + | target |
|
| 27 | + | key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} |
|
| 28 | + | restore-keys: | |
|
| 29 | + | ${{ runner.os }}-cargo- |
|
| 30 | + | ||
| 31 | + | - name: cargo check |
|
| 32 | + | run: cargo check --workspace |
|
| 33 | + | ||
| 34 | + | - name: cargo build |
|
| 35 | + | run: cargo build --workspace |
| 39 | 39 | # If there's a prerelease-style suffix to the version, then the release(s) |
|
| 40 | 40 | # will be marked as a prerelease. |
|
| 41 | 41 | on: |
|
| 42 | - | pull_request: |
|
| 43 | 42 | push: |
|
| 44 | 43 | tags: |
|
| 45 | 44 | - '**[0-9]+.[0-9]+.[0-9]+*' |