Skip to content

Commit cca484a

Browse files
committed
ci: fix windows
1 parent 64ee2b2 commit cca484a

File tree

5 files changed

+40
-30
lines changed

5 files changed

+40
-30
lines changed

.github/workflows/benchmark.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ jobs:
2929
${{ github.job }}-Linux-${{ hashFiles('rust-toolchain') }}-
3030
3131
- name: Install Rust
32+
shell: bash
3233
run: |
33-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
34-
chmod +x /tmp/install-rustup
35-
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
34+
installer=$(mktemp -d)/install-rustup
35+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
36+
bash $installer --default-toolchain $(cat rust-toolchain) -y
3637
3738
- name: Build pdu
3839
run: |

.github/workflows/clippy.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ jobs:
3636
${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-
3737
3838
- name: Install Rust
39+
shell: bash
3940
run: |
40-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
41-
chmod +x /tmp/install-rustup
42-
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) --component clippy -y
41+
installer=$(mktemp -d)/install-rustup
42+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
43+
bash $installer --default-toolchain $(cat rust-toolchain) --component clippy -y
4344
4445
- name: Use clippy to lint code (dev)
4546
env:

.github/workflows/deploy.yaml

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ jobs:
2323
- uses: actions/checkout@v4
2424

2525
- name: Install Rust
26+
shell: bash
2627
run: |
27-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
28-
chmod +x /tmp/install-rustup
29-
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
28+
installer=$(mktemp -d)/install-rustup
29+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
30+
bash $installer --default-toolchain $(cat rust-toolchain) -y
3031
3132
- name: Test (dev)
3233
env:
@@ -66,10 +67,11 @@ jobs:
6667
- uses: actions/checkout@v4
6768

6869
- name: Install Rust
70+
shell: bash
6971
run: |
70-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
71-
chmod +x /tmp/install-rustup
72-
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
72+
installer=$(mktemp -d)/install-rustup
73+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
74+
bash $installer --default-toolchain $(cat rust-toolchain) -y
7375
7476
- name: Install compilation target
7577
run: rustup target add ${{ matrix.target }}
@@ -102,10 +104,11 @@ jobs:
102104
- uses: actions/checkout@v4
103105

104106
- name: Install Rust
107+
shell: bash
105108
run: |
106-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
107-
chmod +x /tmp/install-rustup
108-
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
109+
installer=$(mktemp -d)/install-rustup
110+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
111+
bash $installer --default-toolchain $(cat rust-toolchain) -y
109112
110113
- name: Install compilation target
111114
run: rustup target add ${{ matrix.target }}
@@ -138,10 +141,11 @@ jobs:
138141
- uses: actions/checkout@v4
139142

140143
- name: Install Rust
144+
shell: bash
141145
run: |
142-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
143-
chmod +x /tmp/install-rustup
144-
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
146+
installer=$(mktemp -d)/install-rustup
147+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
148+
bash $installer --default-toolchain $(cat rust-toolchain) -y
145149
146150
- name: Install compilation target
147151
run: rustup target add ${{ matrix.target }}
@@ -393,10 +397,11 @@ jobs:
393397
- uses: actions/checkout@v4
394398

395399
- name: Install Rust
400+
shell: bash
396401
run: |
397-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
398-
chmod +x /tmp/install-rustup
399-
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
402+
installer=$(mktemp -d)/install-rustup
403+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
404+
bash $installer --default-toolchain $(cat rust-toolchain) -y
400405
401406
- name: Login
402407
run: cargo login ${{ secrets.CRATE_AUTH_TOKEN }}
@@ -442,10 +447,11 @@ jobs:
442447
${{ github.job }}-Linux-${{ hashFiles('rust-toolchain') }}-
443448
444449
- name: Install Rust
450+
shell: bash
445451
run: |
446-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
447-
chmod +x /tmp/install-rustup
448-
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
452+
installer=$(mktemp -d)/install-rustup
453+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
454+
bash $installer --default-toolchain $(cat rust-toolchain) -y
449455
450456
- name: Build pdu
451457
run: |

.github/workflows/fmt.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ jobs:
1414
- uses: actions/checkout@v4
1515

1616
- name: Install Rust
17+
shell: bash
1718
run: |
18-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
19-
chmod +x /tmp/install-rustup
20-
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) --component rustfmt -y
19+
installer=$(mktemp -d)/install-rustup
20+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
21+
bash $installer --default-toolchain $(cat rust-toolchain) --component rustfmt -y
2122
2223
- name: Check code formatting
2324
run: cargo fmt -- --check

.github/workflows/test.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ jobs:
3737
${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-
3838
3939
- name: Install Rust
40+
shell: bash
4041
run: |
41-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/install-rustup
42-
chmod +x /tmp/install-rustup
43-
/tmp/install-rustup --default-toolchain $(cat rust-toolchain) -y
42+
installer=$(mktemp -d)/install-rustup
43+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > $installer
44+
bash $installer --default-toolchain $(cat rust-toolchain) -y
4445
4546
- name: Test (dev)
4647
env:

0 commit comments

Comments
 (0)