Skip to content

Commit e8a2408

Browse files
committed
factorize env for cargo
1 parent 30d19dc commit e8a2408

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/actions/build-gcc/action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ runs:
3838
gcc-multilib \
3939
g++-multilib \
4040
dejagnu;
41-
# install Rust directly using rustup
42-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0;
4341
shell: bash
4442

43+
- uses: dtolnay/rust-toolchain@stable
44+
with:
45+
toolchain: "1.72.0"
46+
4547
- name: Make Source Read-Only
4648
run: chmod -R a-w ./*
4749
shell: bash
@@ -62,7 +64,7 @@ runs:
6264
run: |
6365
cd gccrs-build; \
6466
# Add cargo to our path quickly
65-
. "$HOME/.cargo/env";
67+
# . "$HOME/.cargo/env";
6668
make -Otarget -j $(nproc) 2>&1 | tee log
6769
6870
- name: Check for new warnings

0 commit comments

Comments
 (0)