mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-07-04 05:15:33 +00:00
build(toolchain),ci: switch to rust 1.82-beta for now
`precise_capturing` has no workaround but we need it in tests. The main crate should still compile under stable rustc, which is enforced by CI.
This commit is contained in:
parent
7160e5adbd
commit
199985c6a2
8 changed files with 88 additions and 34 deletions
15
.github/workflows/ci.yaml
vendored
15
.github/workflows/ci.yaml
vendored
|
@ -20,10 +20,10 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Rust stable
|
||||
- name: Install Rust beta
|
||||
run: |
|
||||
rustup update --no-self-update stable
|
||||
rustup default stable
|
||||
rustup update --no-self-update beta
|
||||
rustup default beta
|
||||
|
||||
- name: Cache dependencies
|
||||
uses: Swatinem/rust-cache@v2
|
||||
|
@ -40,7 +40,7 @@ jobs:
|
|||
test:
|
||||
strategy:
|
||||
matrix:
|
||||
rust: [stable]
|
||||
rust: [stable, beta]
|
||||
name: Test ${{ matrix.rust }}
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
|
@ -48,11 +48,18 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Disable high-priority rust-toolchain.toml
|
||||
run: rm rust-toolchain.toml
|
||||
|
||||
- name: Install Rust ${{ matrix.rust }}
|
||||
run: |
|
||||
rustup update --no-self-update ${{ matrix.rust }}
|
||||
rustup default ${{ matrix.rust }}
|
||||
|
||||
- name: Disable integration tests on stable rustc
|
||||
if: matrix.rust == 'stable'
|
||||
run: mv ./blahd/tests{,-disabled}
|
||||
|
||||
- name: Cache Dependencies
|
||||
uses: Swatinem/rust-cache@v2
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue