Skip to content

Commit

Permalink
Switch to dtolnay/rust-toolchain@stable
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Nov 3, 2022
1 parent cab2a1a commit 1db9848
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 47 deletions.
46 changes: 11 additions & 35 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --all
- uses: dtolnay/rust-toolchain@stable
- run: cargo check --all

test:
name: Test Suite
Expand Down Expand Up @@ -56,13 +49,11 @@ jobs:
- name: Install Clang
if: matrix.os == 'windows-latest'
run: choco install -y llvm
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
id: rustup
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
components: llvm-tools-preview
override: true
- name: Cache cargo build
uses: Swatinem/rust-cache@v1
- name: Cache test crates cargo build
Expand All @@ -72,11 +63,8 @@ jobs:
tests/hello-tls/target
tests/hello-windows/target
tests/libhello/target
key: test-crates-${{ runner.os }}-${{ steps.rustup.outputs.rustc_hash }}-${{ hashFiles('tests/*/Cargo.lock') }}
- uses: actions-rs/cargo@v1
with:
command: build
args: --release
key: test-crates-${{ runner.os }}-${{ steps.rustup.outputs.cachekey }}-${{ hashFiles('tests/*/Cargo.lock') }}
- run: cargo build --release
- name: xwin build - x86_64
run: |
rustup target add x86_64-pc-windows-msvc
Expand Down Expand Up @@ -111,32 +99,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
components: rustfmt
override: true
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- run: cargo fmt --all -- --check

clippy_check:
name: Clippy Check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
components: clippy
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
- run: cargo clippy --all-features

spellcheck:
name: spellcheck
Expand Down
15 changes: 3 additions & 12 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: aarch64-apple-darwin
profile: minimal
default: true
targets: aarch64-apple-darwin
- name: Cache cargo build
uses: Swatinem/rust-cache@v1
- name: Build
Expand Down Expand Up @@ -69,12 +65,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
default: true
- uses: dtolnay/rust-toolchain@stable
- name: Cache cargo build
uses: Swatinem/rust-cache@v1
- name: Build
Expand Down

0 comments on commit 1db9848

Please sign in to comment.