Skip to content

Commit

Permalink
ci: include conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed May 9, 2024
1 parent f70309e commit 5040ebe
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,19 @@ jobs:
ubuntu-latest,
windows-latest
]
docker: [false]
docker: ['false']
include:
- os: ubuntu-latest
docker: true
alpine: false
docker: 'true'
alpine: 'false'
arch: arm64
- os: ubuntu-latest
docker: true
alpine: true
docker: 'true'
alpine: 'true'
arch: arm64
- os: ubuntu-latest
docker: true
alpine: true
docker: 'true'
alpine: 'true'
arch: amd64

env:
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:

- if: ${{ matrix.docker == 'true' }} && ${{ matrix.alpine != 'true' }}
name: prebuild linux ${{ matrix.arch }}
run: docker run -v $PWD:/home --platform linux/${{ matrix.arch }} -e CIRRUS_CI=true --rm node:20 bin/sh -c 'cd /home && /home/script/ci/prebuild-alpine.sh && rm -rf ffi node_modules'
run: docker run -v $PWD:/home --platform linux/${{ matrix.arch }} -e CIRRUS_CI=true --rm node:20 bin/sh -c 'cd /home && /home/script/ci/prebuild.sh && rm -rf ffi node_modules'

- run: sudo chown -R $(id -u):$(id -g) prebuilds
if: ${{ matrix.docker == 'true' }}
Expand Down

0 comments on commit 5040ebe

Please sign in to comment.