Skip to content

Commit

Permalink
Disable windows build to test CI fast
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Oct 8, 2024
1 parent a857364 commit ba1737d
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
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}
Expand All @@ -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 && contains(matrix.settings.target, 'aarch64') }}
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 && !contains(matrix.settings.target, 'aarch64') }}
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 ba1737d

Please sign in to comment.