Skip to content

Commit

Permalink
ci: install zstd binary
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Jun 11, 2024
1 parent 30c33c0 commit a2c810c
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,20 @@ jobs:
key: ${{ runner.os }}-npm-cache
restore-keys: ${{ runner.os }}-npm-cache
- name: Install Dependencies
run: npm install
- name: Determine zstd binary version
shell: bash
run: |
npm install
npm install @mongodb-js/zstd-linux-x64-musl \
@mongodb-js/zstd-win32-x64-msvc \
@mongodb-js/zstd-darwin-arm64
case "$RUNNER_OS" in
"Linux")
echo "PLATFORM=linux-x64-gnu" >> "$GITHUB_ENV" ;;
"Windows")
echo "PLATFORM=win32-x64-msvc" >> "$GITHUB_ENV" ;;
"macOS")
echo "PLATFORM=darwin-arm64" >> "$GITHUB_ENV" ;;
esac
- name: Install zstd binary
run: npm install "@mongodb-js/zstd-${PLATFORM}"
- name: Test
run: npm run test
env:
Expand Down

0 comments on commit a2c810c

Please sign in to comment.