Skip to content

Commit ef3913a

Browse files
committed
Fix cosmocc unzip to non-interactive temp dir
1 parent e46d1d6 commit ef3913a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,11 @@ jobs:
2828
- name: Install Cosmocc 4.0.2
2929
run: |
3030
curl -fL "https://cosmo.zip/pub/cosmocc/cosmocc-4.0.2.zip" -o cosmocc.zip
31-
unzip -q cosmocc.zip
32-
COSMO_DIR="$(find "$PWD" -maxdepth 1 -type d -name 'cosmocc-*' | head -n 1)"
31+
COSMO_ROOT="$RUNNER_TEMP/cosmocc"
32+
rm -rf "$COSMO_ROOT"
33+
mkdir -p "$COSMO_ROOT"
34+
unzip -q -o cosmocc.zip -d "$COSMO_ROOT"
35+
COSMO_DIR="$(find "$COSMO_ROOT" -maxdepth 1 -type d -name 'cosmocc-*' | head -n 1)"
3336
test -n "$COSMO_DIR"
3437
echo "$COSMO_DIR/bin" >> "$GITHUB_PATH"
3538
"$COSMO_DIR/bin/cosmocc" --version

0 commit comments

Comments
 (0)