Skip to content

Commit 9d83645

Browse files
committed
Use tar, not unzip to extract bsc archive
1 parent dca0a5c commit 9d83645

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ jobs:
4848
- shell: bash
4949
name: Install bsc
5050
run: |
51-
curl -o bsc.tar.gz -sL "https://github.com/B-Lang-org/bsc/releases/download/${{ env.BSC_VERSION }}/bsc-${{ env.BSC_VERSION }}-ubuntu-22.04.tar.gz"
52-
unzip -o bsc.tar.gz
53-
rm bsc.tar.gz
54-
echo "$PWD/bsc/bin" >> $GITHUB_PATH
51+
wget "https://github.com/B-Lang-org/bsc/releases/download/${{ env.BSC_VERSION }}/$BSC_DIR.tar.gz"
52+
tar -xzf $BSC_DIR.tar.gz
53+
rm $BSC_DIR.tar.gz
54+
echo "$PWD/$BSC_DIR/bin" >> $GITHUB_PATH
55+
env:
56+
BSC_DIR: "bsc-${{ env.BSC_VERSION }}-ubuntu-22.04"
5557

5658
- shell: bash
5759
name: Update

0 commit comments

Comments
 (0)