Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable windows build to test CI fast
Browse files Browse the repository at this point in the history
nazarhussain committed Oct 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a857364 commit 50f53e0
Showing 1 changed file with 35 additions and 21 deletions.
56 changes: 35 additions & 21 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -36,8 +36,8 @@ jobs:
- aarch64-unknown-linux-gnu
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-musl
- x86_64-pc-windows-msvc
- aarch64-pc-windows-msvc
# - x86_64-pc-windows-msvc
# - aarch64-pc-windows-msvc
runs-on: ubuntu-latest
name: Build - ${{ matrix.targets }}
steps:
@@ -107,27 +107,31 @@ jobs:
host: macos-latest
architecture: arm64
- target: x86_64-unknown-linux-gnu
host: ubutnu-latest
host: ubuntu-latest
archicture: x64
docker: true
docker: node:20-slim
args: ''
- target: aarch64-unknown-linux-gnu
host: ubutnu-latest
host: ubuntu-latest
archicture: arm64
docker: true
docker: node:20-slim
args: '--platform linux/arm64'
- target: x86_64-unknown-linux-musl
host: ubutnu-latest
host: ubuntu-latest
archicture: x64
docker: true
docker: node:20-alpine
args: ''
- target: aarch64-unknown-linux-musl
host: ubutnu-latest
host: ubuntu-latest
archicture: arm64
docker: true
- target: x86_64-pc-windows-msvc
host: windows-latest
architecture: x64
- target: aarch64-pc-windows-msvc
host: windows-latest
architecture: arm64
docker: node:20-alpine
args: '--platform linux/arm64'
# - target: x86_64-pc-windows-msvc
# host: windows-latest
# architecture: x64
# - target: aarch64-pc-windows-msvc
# host: windows-latest
# architecture: arm64
node: ["20"]
runs-on: ${{ matrix.settings.host }}
needs:
@@ -145,8 +149,8 @@ jobs:
uses: actions/download-artifact@v4
with:
name: bindings-${{ matrix.settings.target }}
- name: Run tests
if: not(${{ matrix.settings.docker }})
- name: Run tests on host
if: ${{ !matrix.settings.docker }}
run: yarn test
- name: Set up QEMU
if: ${{ matrix.settings.docker }}
@@ -156,13 +160,23 @@ jobs:
- name: Setup docker
if: ${{ matrix.settings.docker }}
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Run tests
if: ${{ matrix.settings.docker }}
- name: Run tests in docker
if: ${{ matrix.settings.docker && matrix.settings.archicture == 'arm64'}}
uses: addnab/docker-run-action@v3
with:
image: ${{ matrix.settings.docker }}
options: ${{ matrix.settings.args }} -v ${{ github.workspace }}:/build -w /build
run: |
set -e
yarn add -D @rollup/rollup-linux-arm64-gnu @rollup/rollup-linux-arm64-musl
yarn test
- name: Run tests in docker
if: ${{ matrix.settings.docker && matrix.settings.archicture != 'arm64'}}
uses: addnab/docker-run-action@v3
with:
image: ${{ matrix.settings.docker }}
options: ${{ matrix.settings.args }} -v ${{ github.workspace }}:/build -w /build
run: |
set -e
yarn test

0 comments on commit 50f53e0

Please sign in to comment.