Skip to content

Commit

Permalink
ci: native arm build (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj authored Feb 2, 2024
1 parent b444a1a commit 14458be
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,14 @@ jobs:
build:
needs: lint
runs-on: macos-13
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
arch: [x86_64, arm64]
os: [macos-14, macos-13]
include:
- { os: macos-14, arch: arm64 }
- { os: macos-13, arch: x86_64 }

steps:
- uses: actions/checkout@v4
Expand All @@ -42,7 +45,7 @@ jobs:
pnpm i
- name: Lint and Check type
if: ${{ matrix.arch == 'x86_64' }}
if: ${{ matrix.arch == 'arm64' }}
run: |
pnpm run lint
pnpm run check
Expand All @@ -60,7 +63,7 @@ jobs:
cmake --build build
- name: Test
if: ${{ matrix.arch == 'x86_64' }}
if: ${{ matrix.arch == 'arm64' }}
run: |
npx playwright install webkit
pnpm run test
Expand Down

0 comments on commit 14458be

Please sign in to comment.