Skip to content

Commit

Permalink
ci: use @stable and @nightly rev instead of @master (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Jul 23, 2024
1 parent f575619 commit fbc15c2
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ jobs:
strategy:
fail-fast: false
matrix:
rust_version: [stable]
platform:
# Windows
- { id: windows, target: x86_64-pc-windows-msvc, os: windows-latest }
Expand Down Expand Up @@ -48,12 +47,11 @@ jobs:
uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ matrix.platform.target }}-cargo-${{ matrix.rust_version }}
key: ${{ matrix.platform.target }}-cargo-stable

- uses: dtolnay/rust-toolchain@master
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform.target }}
toolchain: ${{ matrix.rust_version }}

- name: Install Gtk (ubuntu only)
if: matrix.platform.os == 'ubuntu-latest'
Expand Down Expand Up @@ -108,12 +106,11 @@ jobs:
!contains(matrix.platform.target, 'ios'))
run: cargo $CMD test --verbose --target ${{ matrix.platform.target }} $OPTIONS --features serde,$FEATURES

- uses: dtolnay/rust-toolchain@master
- uses: dtolnay/rust-toolchain@nightly
if: (
!contains(matrix.platform.target, 'android') &&
!contains(matrix.platform.target, 'ios'))
with:
toolchain: nightly
targets: ${{ matrix.platform.target }}
components: miri

Expand All @@ -133,7 +130,7 @@ jobs:
uses: actions/cache@v1
with:
path: ~/.cargo
key: ${{ matrix.platform.target }}-cargo-${{ matrix.rust_version }}
key: ${{ matrix.platform.target }}-cargo-stable

- uses: dtolnay/rust-toolchain@stable

Expand All @@ -146,7 +143,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt --all -- --check

0 comments on commit fbc15c2

Please sign in to comment.