Skip to content

Commit 75b3447

Browse files
committed
CI scripts stop using deprecated set-path
They were disabled sometime recently, breaking the CI
1 parent eb3bad8 commit 75b3447

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/psm.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ jobs:
7070
steps:
7171
- uses: actions/checkout@v2
7272
- name: Add MSYS2 to the PATH
73-
run: echo "::add-path::c:/msys64/bin"
73+
run: echo "c:/msys64/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
7474
- name: Add 32-bit mingw-w64 to the PATH
75-
run: echo "::add-path::c:/msys64/mingw32/bin"
75+
run: echo "c:/msys64/mingw32/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
7676
if: startsWith(matrix.rust_target, 'i686')
7777
- name: Add 64-bit mingw-w64 to the PATH
78-
run: echo "::add-path::c:/msys64/mingw64/bin"
78+
run: echo "c:/msys64/mingw64/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
7979
if: startsWith(matrix.rust_target, 'x86_64')
8080
- name: Install Rust nightly
8181
uses: actions-rs/toolchain@v1

.github/workflows/stacker.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ jobs:
5252
steps:
5353
- uses: actions/checkout@v2
5454
- name: Add MSYS2 to the PATH
55-
run: echo "::add-path::c:/msys64/bin"
55+
run: echo "c:/msys64/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
5656
- name: Add 32-bit mingw-w64 to the PATH
57-
run: echo "::add-path::c:/msys64/mingw32/bin"
57+
run: echo "c:/msys64/mingw32/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
5858
if: startsWith(matrix.rust_target, 'i686')
5959
- name: Add 64-bit mingw-w64 to the PATH
60-
run: echo "::add-path::c:/msys64/mingw64/bin"
60+
run: echo "c:/msys64/mingw64/bin" | Out-File -FilePath $env:GITHUB_PATH -Append
6161
if: startsWith(matrix.rust_target, 'x86_64')
6262
- name: Install Rust nightly
6363
uses: actions-rs/toolchain@v1
@@ -201,7 +201,6 @@ jobs:
201201
- run: rustup target add wasm32-wasi
202202
- run: |
203203
curl -Lf https://github.com/bytecodealliance/wasmtime/releases/download/v0.19.0/wasmtime-v0.19.0-x86_64-linux.tar.xz | tar xJf - -C ${{ runner.tool_cache }}
204-
echo ::add-path::${{ runner.tool_cache }}/wasmtime-v0.19.0-x86_64-linux
205-
echo ::set-env name=CARGO_BUILD_TARGET::wasm32-wasi
206-
echo ::set-env name=CARGO_TARGET_WASM32_WASI_RUNNER::wasmtime run --
204+
echo "${{ runner.tool_cache }}/wasmtime-v0.19.0-x86_64-linux" >> $GITHUB_PATH
205+
echo "CARGO_TARGET_WASM32_WASI_RUNNER=wasmtime run --" >> $GITHUB_ENV
207206
- run: cargo test --target wasm32-wasi --all -- --nocapture

0 commit comments

Comments
 (0)