Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(CI): work around nightly rustup conflict error #519

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,24 @@ jobs:
test:
strategy:
matrix:
toolchain: [ nightly, stable ]
toolchain: [ nightly-2024-09-01, stable ]
runs-on: ubuntu-latest
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

# this strips the date suffix from the github job name so we don't have to
# touch our required statusses list.
name: test (${{ startsWith(matrix.toolchain, 'nightly') && 'nightly' || matrix.toolchain }})

steps:
- name: Check out repository code
uses: actions/checkout@v3

- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: llvm-tools-preview
components: llvm-tools

- name: rust cache
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -82,7 +86,7 @@ jobs:
run: "LAZE=$(pwd)/target/debug/laze make -C src/tests"

- name: "collect coverage results"
if: ${{ matrix.toolchain == 'nightly' }}
if: ${{ startsWith(matrix.toolchain, 'nightly') }}
run: >
RUSTUP_TOOLCHAIN=${{ matrix.toolchain }}
grcov
Expand All @@ -95,7 +99,7 @@ jobs:
--ignore "/*"

- name: Coveralls
if: ${{ matrix.toolchain == 'nightly' }}
if: ${{ startsWith(matrix.toolchain, 'nightly') }}
uses: coverallsapp/github-action@v1
with:
path-to-lcov: "lcov.info"
Loading