mirror of
https://github.com/Swatinem/rust-cache.git
synced 2024-11-23 06:16:07 +08:00
move buildjet test into its own workflow
This commit is contained in:
parent
b00faf5858
commit
e97a782690
32
.github/workflows/buildjet.yml
vendored
Normal file
32
.github/workflows/buildjet.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: buildjet
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
buildjet:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
|
||||||
|
name: Test buildjet provider on ${{ matrix.os }}
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
env:
|
||||||
|
CARGO_TERM_COLOR: always
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- run: rustup toolchain install stable --profile minimal --no-self-update
|
||||||
|
|
||||||
|
- uses: ./
|
||||||
|
with:
|
||||||
|
workspaces: tests
|
||||||
|
cache-provider: buildjet
|
||||||
|
|
||||||
|
- run: |
|
||||||
|
cargo check
|
||||||
|
cargo test
|
||||||
|
cargo build --release
|
||||||
|
working-directory: tests
|
2
.github/workflows/git-registry.yml
vendored
2
.github/workflows/git-registry.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
|
|
||||||
name: Test `cargo check/test` with sparse registry on ${{ matrix.os }}
|
name: Test cargo "git" registry on ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
30
.github/workflows/simple.yml
vendored
30
.github/workflows/simple.yml
vendored
@ -29,33 +29,3 @@ jobs:
|
|||||||
cargo test
|
cargo test
|
||||||
cargo build --release
|
cargo build --release
|
||||||
working-directory: tests
|
working-directory: tests
|
||||||
simple-buildjet:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
||||||
|
|
||||||
name: Test `cargo check/test` on ${{ matrix.os }}
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
env:
|
|
||||||
CARGO_TERM_COLOR: always
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
# When rustup is updated, it tries to replace its binary, which on Windows is somehow locked.
|
|
||||||
# This can result in the CI failure, see: https://github.com/rust-lang/rustup/issues/3029
|
|
||||||
- run: |
|
|
||||||
rustup set auto-self-update disable
|
|
||||||
rustup toolchain install stable --profile minimal
|
|
||||||
|
|
||||||
- uses: ./
|
|
||||||
with:
|
|
||||||
workspaces: tests
|
|
||||||
cache-provider: buildjet
|
|
||||||
|
|
||||||
- run: |
|
|
||||||
cargo check
|
|
||||||
cargo test
|
|
||||||
working-directory: tests
|
|
||||||
|
Loading…
Reference in New Issue
Block a user