Skip to content

Commit

Permalink
fix(ci): Change dtolnay/rust-toolchaint to stable
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Gil <[email protected]>
  • Loading branch information
pando85 committed Aug 24, 2023
1 parent edab63b commit be94d63
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

- name: Install stable toolchain
id: toolchain
uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@stable

- run: rustup override set ${{steps.toolchain.outputs.name}}

Expand All @@ -41,7 +41,7 @@ jobs:

- name: Install stable toolchain
id: toolchain
uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@stable

- run: rustup override set ${{steps.toolchain.outputs.name}}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: Install stable toolchain
id: toolchain
uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@stable

- run: rustup override set ${{steps.toolchain.outputs.name}}
- run: rustup component add rustfmt
Expand Down
25 changes: 16 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ jobs:
uses: actions/checkout@v3

- name: Install fmt with stable toolchain
id: toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt

- run: rustup override set ${{steps.toolchain.outputs.name}}
- run: rustup component add rustfmt

- name: Run cargo fmt
run: cargo fmt --all -- --check
Expand All @@ -33,10 +34,11 @@ jobs:
uses: actions/checkout@v3

- name: Install clippy with stable toolchain
id: toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy

- run: rustup override set ${{steps.toolchain.outputs.name}}
- run: rustup component add clippy

- uses: actions-rs/clippy-check@v1
with:
Expand All @@ -56,10 +58,13 @@ jobs:
echo "MIN_SUPPORTED_RUST_VERSION=$(sed -n 's/^rust-version = "\(.*\)"/\1/p' Cargo.toml | head -n1)" >> $GITHUB_ENV
- name: Install rust toolchain (v${{ env.MIN_SUPPORTED_RUST_VERSION }})
uses: dtolnay/rust-toolchain@stable
id: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MIN_SUPPORTED_RUST_VERSION }}
components: clippy

- run: rustup override set ${{steps.toolchain.outputs.name}}
- run: rustup component add clippy

- name: Run clippy (on minimum supported rust version to prevent warnings we can't fix)
uses: actions-rs/cargo@v1
Expand Down Expand Up @@ -111,11 +116,13 @@ jobs:
key: ${{ matrix.job.target }}

- name: Install Rust toolchain
id: toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: ${{ matrix.job.target }}

- run: rustup override set ${{steps.toolchain.outputs.name}}

- name: Run tests
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit be94d63

Please sign in to comment.