Skip to content

Commit 570f556

Browse files
Fix e2e preparation script
1 parent aec5816 commit 570f556

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build-toolchain.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,12 @@ jobs:
122122
path: ./swift-test-results.tar.gz
123123

124124
# Run e2e test
125-
- name: Run E2E test
125+
- name: Prepare E2E test
126126
working-directory: ${{ github.workspace }}/../
127127
run: |
128-
tar xf swift-wasm-$TOOLCHAIN_CHANNEL-SNAPSHOT-${{ matrix.target }}.tar.gz
129-
echo "TOOLCHAIN=$(find "$PWD" -name "swift-wasm-$TOOLCHAIN_CHANNEL-*" -type d)" >> $GITHUB_ENV
128+
INSTALL_DIR=$(mktemp -d)
129+
tar xf swift-wasm-$TOOLCHAIN_CHANNEL-SNAPSHOT-${{ matrix.target }}.tar.gz -C "$INSTALL_DIR"
130+
echo "TOOLCHAIN=$(find "$INSTALL_DIR" -name "swift-wasm-$TOOLCHAIN_CHANNEL-*" -type d | head -n1)" >> $GITHUB_ENV
130131
- name: Build hello.wasm
131132
shell: bash
132133
if: ${{ matrix.build_hello_wasm }}

0 commit comments

Comments
 (0)