Skip to content

Commit fdac87f

Browse files
committed
Install toolchain with rustup directly
Signed-off-by: Joe Richey <[email protected]>
1 parent 7b8f2ba commit fdac87f

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

.github/workflows/tests.yml

+11-15
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ jobs:
7070
]
7171
steps:
7272
- uses: actions/checkout@v2
73-
- uses: actions-rs/toolchain@v1
74-
with:
75-
profile: minimal
76-
target: ${{ matrix.target }}
77-
toolchain: stable
73+
- name: Install toolchain/target
74+
run: |
75+
rustup update stable --no-self-update --profile=minimal --target=${{ matrix.target }}
76+
rustup default stable
7877
- name: Install multilib
7978
# update is needed to fix the 404 error on install, see:
8079
# https://github.com/actions/virtual-environments/issues/675
@@ -97,11 +96,10 @@ jobs:
9796
]
9897
steps:
9998
- uses: actions/checkout@v2
100-
- uses: actions-rs/toolchain@v1
101-
with:
102-
profile: minimal
103-
target: ${{ matrix.target }}
104-
toolchain: stable
99+
- name: Install toolchain/target
100+
run: |
101+
rustup update stable --no-self-update --profile=minimal --target=${{ matrix.target }}
102+
rustup default stable
105103
- name: Build Tests
106104
run: cargo test --no-run --target=${{ matrix.target }} --features=std
107105

@@ -118,11 +116,9 @@ jobs:
118116
steps:
119117
- uses: actions/checkout@v2
120118
- name: Install toolchain
121-
uses: actions-rs/toolchain@v1
122-
with:
123-
profile: minimal
124-
toolchain: ${{ matrix.toolchain }}
125-
override: true
119+
run: |
120+
rustup update ${{ matrix.toolchain }} --no-self-update --profile=minimal
121+
rustup default ${{ matrix.toolchain }}
126122
- run: cargo test --features=std
127123

128124
# TODO: Add emscripten when it's working with Cross

0 commit comments

Comments
 (0)