Skip to content

Commit 111aa01

Browse files
committed
ci: fix in windows/freeBSD environment
1 parent af8c8ea commit 111aa01

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
run: |
115115
curl -o rustup-init.exe https://win.rustup.rs/x86_64
116116
.\rustup-init.exe -y --default-toolchain stable --default-host ${{ matrix.settings.target }}
117-
set PATH=%PATH%;%USERPROFILE%\.cargo\bin
117+
echo "%USERPROFILE%\.cargo\bin" >> $env:GITHUB_PATH
118118
"%USERPROFILE%\.cargo\bin\rustup.exe" component add rustfmt clippy
119119
shell: cmd
120120

@@ -220,16 +220,18 @@ jobs:
220220
RUSTUP_IO_THREADS: 1
221221
with:
222222
operating_system: freebsd
223-
version: '14.3'
224-
memory: 8G
225-
cpu_count: 3
223+
version: '13.4'
224+
memory: 2G
225+
cpu_count: 1
226226
environment_variables: 'DEBUG RUSTUP_IO_THREADS'
227227
shell: bash
228+
sync_files: false
229+
shutdown_vm: true
228230
run: |
229231
sudo pkg install -y -f curl node libnghttp2 npm
230232
sudo npm install -g corepack
231233
curl https://sh.rustup.rs -sSf --output rustup.sh
232-
sh rustup.sh -y --profile minimal --default-toolchain beta
234+
sh rustup.sh -y --profile minimal --default-toolchain stable
233235
corepack prepare
234236
corepack enable
235237
source "$HOME/.cargo/env"

0 commit comments

Comments
 (0)