Skip to content

Commit a436a9b

Browse files
committed
build: switch to dtolnay/rust-toolchain
1 parent df36d0e commit a436a9b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/actions/rust-toolchain/action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: rust-toolchain
23
description: "Sets up a standard rust toolchain"
34
inputs:
@@ -18,12 +19,9 @@ runs:
1819
DEFAULT_TOOLCHAIN=$(grep channel rust-toolchain.toml | awk '{print $3}' | sed 's/"//g')
1920
TOOLCHAIN=${USER_OVERRIDE:-$DEFAULT_TOOLCHAIN}
2021
echo "toolchain=$TOOLCHAIN" >> $GITHUB_OUTPUT
21-
22-
- uses: actions-rs/toolchain@v1
22+
- uses: dtolnay/rust-toolchain@stable
2323
with:
24-
profile: minimal
2524
toolchain: ${{ steps.get-toolchain.outputs.toolchain }}
26-
override: true
2725
- uses: Swatinem/rust-cache@v2.0.0
2826
with:
2927
shared-key: ${{ steps.get-toolchain.outputs.toolchain }}
@@ -33,3 +31,6 @@ runs:
3331
- run: git config --global url."https://${{ inputs.token }}@github.com/".insteadOf "git@github.com:"
3432
if: ${{ inputs.token != null }}
3533
shell: bash
34+
- run: git config --global url."https://${{ inputs.token }}@github.com".insteadOf "ssh://git@github.com"
35+
if: ${{ inputs.token != null }}
36+
shell: bash

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
---
12
name: ci-rust-push
23

34
on:

0 commit comments

Comments
 (0)