mirror of https://github.com/curbengh/hexo-yam
ci: check RUNNER_OS in windows
This commit is contained in:
parent
a2c810cfb5
commit
ea2de32cd1
|
@ -7,8 +7,8 @@ jobs:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
os: [windows-latest]
|
||||||
node-version: ["18", "20", "22"]
|
node-version: ["18"]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
@ -27,16 +27,9 @@ jobs:
|
||||||
- name: Determine zstd binary version
|
- name: Determine zstd binary version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
case "$RUNNER_OS" in
|
echo "$RUNNER_OS"
|
||||||
"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
|
- name: Install zstd binary
|
||||||
run: npm install "@mongodb-js/zstd-${PLATFORM}"
|
run: npm install "@mongodb-js/zstd-win32-x64-msvc"
|
||||||
- name: Test
|
- name: Test
|
||||||
run: npm run test
|
run: npm run test
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in New Issue