Skip to content

Commit e38fd09

Browse files
committed
ci(github): move curl and setup rust into one step
1 parent 9e6a159 commit e38fd09

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.github/workflows/cmake-debug.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,12 @@ jobs:
2323
~/.ninja
2424
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2525

26-
- name: Check and Install curl
26+
- name: Setup Rust
2727
run: |
2828
if ! command -v curl &> /dev/null
2929
then
3030
sudo apt-get update && sudo apt-get install -y curl
3131
fi
32-
33-
- name: Setup Rust
34-
run: |
3532
if ! command -v rustup &> /dev/null
3633
then
3734
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly

.github/workflows/cmake-release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,12 @@ jobs:
2323
~/.ninja
2424
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2525

26-
- name: Check and Install curl
26+
- name: Setup Rust
2727
run: |
2828
if ! command -v curl &> /dev/null
2929
then
3030
sudo apt-get update && sudo apt-get install -y curl
3131
fi
32-
33-
- name: Setup Rust
34-
run: |
3532
if ! command -v rustup &> /dev/null
3633
then
3734
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly

0 commit comments

Comments
 (0)