Skip to content

Commit 699af84

Browse files
committed
Don't rely on bash 4.0 to lowercase platform name on CI
1 parent 86814ee commit 699af84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ jobs:
8585
if: startsWith(github.ref, 'refs/tags/v')
8686
run: |
8787
cp target/release/tree-sitter .
88-
gzip --suffix "-${OS,,}-x64.gz" tree-sitter
89-
env:
90-
OS: ${{ runner.os }}
88+
export platform=$(echo ${{ runner.os }} | awk '{print tolower($0)}')
89+
gzip --suffix "-${platform}-x64.gz" tree-sitter
9190
9291
- name: Release
9392
uses: softprops/action-gh-release@v1

0 commit comments

Comments
 (0)