Skip to content

Commit

Permalink
yargg
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F committed May 9, 2024
1 parent bd73d46 commit cbb5097
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ jobs:
ubuntu-latest,
windows-latest
]
docker: ['false']
alpine: ['false']
arch: ['amd64']
# docker: ['false']
# alpine: ['false']
# arch: ['amd64']
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 All @@ -70,16 +70,16 @@ jobs:


- name: Set up QEMU
if: ${{ matrix.docker == 'true' }} && ${{ matrix.alpine == 'true' }} && ${{ matrix.arch == 'arm64' }}
if: ${{ matrix.docker == 'true' && matrix.alpine == 'true' && matrix.arch == 'arm64' }}
uses: docker/setup-qemu-action@v3

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

- if: ${{ matrix.docker == 'true' }} && ${{ matrix.alpine != 'true' }}
- 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.sh && rm -rf ffi node_modules'
run: docker run -v $PWD:/home --platform linux/${{ matrix.arch }} -e CIRRUS_CI=true --rm node:20 bin/bash -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 Expand Up @@ -157,19 +157,19 @@ jobs:
# Related comment: https://github.com/phusion/passenger/issues/2288#issuecomment-1387625121

- name: Set up QEMU
if: ${{ matrix.docker == 'true' }} && ${{ matrix.alpine == 'true' }} && ${{ matrix.arch == 'arm64' }}
if: ${{ matrix.docker == 'true' && matrix.alpine == 'true' && matrix.arch == 'arm64' }}
uses: docker/setup-qemu-action@v3


- if: ${{ matrix.docker == 'true' }} && ${{ matrix.alpine != 'true' }}
- if: ${{ matrix.docker == 'true' && matrix.alpine != 'true' }}
name: test arm64
run: docker run -v $PWD:/home --platform linux/${{ matrix.arch }} --rm node:20 bin/bash -c 'cd /home && /home/script/ci/unpack-and-test.sh'

- if: ${{ matrix.docker == 'true' }} && ${{ matrix.alpine == 'true' }} && ${{ matrix.arch == 'amd64' }}
- if: ${{ matrix.docker == 'true' && matrix.alpine == 'true' && matrix.arch == 'amd64' }}
name: test linux amd64 musl
run: docker run -v $PWD:/home --platform linux/${{ matrix.arch }} -e CIRRUS_CI=true --rm node:20-alpine bin/sh -c 'apk add bash curl gcompat && cd /home && /home/script/ci/unpack-and-test.sh'

- if: ${{ matrix.docker == 'true' }} && ${{ matrix.alpine == false }} && ${{ matrix.arch == 'arm64' }}
- if: ${{ matrix.docker == 'true' && matrix.alpine == false && matrix.arch == 'arm64' }}
name: test linux arm64 musl
run: docker run -v $PWD:/home --platform linux/${{ matrix.arch }} -e CIRRUS_CI=true --rm node:20-alpine bin/sh -c 'apk add bash curl libc6-compat gcompat && cd /home && /home/script/ci/unpack-and-test.sh'

Expand Down

0 comments on commit cbb5097

Please sign in to comment.