Skip to content

Commit

Permalink
move buildjet test into its own workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Aug 2, 2023
1 parent b00faf5 commit e97a782
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 31 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/buildjet.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 1 addition & 1 deletion .github/workflows/git-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
matrix:
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 }}

env:
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,3 @@ jobs:
cargo test
cargo build --release
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

0 comments on commit e97a782

Please sign in to comment.