Skip to content

Commit

Permalink
Add arm64 arch to workflow file (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
giarc3 authored Jul 5, 2022
1 parent f015c98 commit 2d953f8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/typescript-ci-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,37 @@
target: x86_64-unknown-linux-gnu
- os: windows-2019
target: x86_64-pc-windows-msvc
arch:
- x64
include:
# only node 15+ supports arm64 natively, so we only need to build 16 for now
- system:
os: [self-hosted, macOS, ARM64]
target: aarch64-apple-darwin
node_version: 16
rust_version: 1.56.0
arch: arm64
- system:
os: [self-hosted, macOS, ARM64]
target: aarch64-apple-darwin
node_version: 16
rust_version: stable
arch: arm64
- system:
os: [self-hosted, macOS, ARM64]
target: aarch64-apple-darwin
node_version: 16
rust_version: beta
arch: arm64
- op: add
path: /jobs/test/strategy/fail-fast
value: false
- op: replace
path: /jobs/test/runs-on
value: "${{ matrix.system.os }}"
- op: add
path: /jobs/test/steps/1/with/architecture
value: "${{ matrix.arch }}"

# These steps are lifted from the Rust CI workflow, cargo-test job.
- op: test
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/typescript-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
target: x86_64-unknown-linux-gnu
- os: windows-2019
target: x86_64-pc-windows-msvc
arch:
- x64
include:
- system:
os:
Expand All @@ -38,6 +40,7 @@ jobs:
target: aarch64-apple-darwin
node_version: 16
rust_version: 1.56.0
arch: arm64
- system:
os:
- self-hosted
Expand All @@ -46,6 +49,7 @@ jobs:
target: aarch64-apple-darwin
node_version: 16
rust_version: stable
arch: arm64
- system:
os:
- self-hosted
Expand All @@ -54,13 +58,15 @@ jobs:
target: aarch64-apple-darwin
node_version: 16
rust_version: beta
arch: arm64
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
cache: yarn
architecture: ${{ matrix.arch }}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down Expand Up @@ -92,6 +98,8 @@ jobs:
- 12
- 14
- 16
arch:
- x64
os:
- ubuntu-20.04
fail-fast: false
Expand Down

0 comments on commit 2d953f8

Please sign in to comment.