From a2c810cfb5d35fc1df2c4b850a88ab01dbb4a95d Mon Sep 17 00:00:00 2001 From: MDLeom <43627182+curbengh@users.noreply.github.com> Date: Tue, 11 Jun 2024 12:06:41 +0000 Subject: [PATCH] ci: install zstd binary --- .github/workflows/tester.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index b8fc366..d334043 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -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: