From e97a7826903c1b1a61aad0e50f9bfd027c4257b9 Mon Sep 17 00:00:00 2001 From: Arpad Borsos Date: Wed, 2 Aug 2023 10:38:22 +0200 Subject: [PATCH] move buildjet test into its own workflow --- .github/workflows/buildjet.yml | 32 ++++++++++++++++++++++++++++++ .github/workflows/git-registry.yml | 2 +- .github/workflows/simple.yml | 30 ---------------------------- 3 files changed, 33 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/buildjet.yml diff --git a/.github/workflows/buildjet.yml b/.github/workflows/buildjet.yml new file mode 100644 index 0000000..342a3fb --- /dev/null +++ b/.github/workflows/buildjet.yml @@ -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 diff --git a/.github/workflows/git-registry.yml b/.github/workflows/git-registry.yml index 8758ff3..be5760e 100644 --- a/.github/workflows/git-registry.yml +++ b/.github/workflows/git-registry.yml @@ -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: diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 3d3b06a..8f9333f 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -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