-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First pass at adding arm64 to the build. (#77)
* First pass at adding arm64 to the build. Both node-pre-gyp and rust need different platform and architecture arguments since we have to cross compile. There aren't currently M1 action runners available to do this natively. Uses rust-toolchain to set the default to the current matrix option, need to make sure that works and that the linker used doesn't get messed up for musl builds for ex. * Might be a better matrix setup * Forgot to alter runs-on for docker-test * Didn't patch :/ * :/
- Loading branch information
Showing
5 changed files
with
68 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,21 +11,26 @@ name: TypeScript CI | |
workflow_dispatch: null | ||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
runs-on: ${{ matrix.system.os }} | ||
strategy: | ||
matrix: | ||
node_version: | ||
- '12' | ||
- '14' | ||
- '16' | ||
rust_version: | ||
- 1.56.0 | ||
- stable | ||
- beta | ||
os: | ||
- macos-10.15 | ||
- ubuntu-20.04 | ||
- windows-2019 | ||
node_version: | ||
- 12 | ||
- 14 | ||
- 16 | ||
system: | ||
- os: macos-10.15 | ||
target: x86_64-apple-darwin | ||
- os: macos-11 | ||
target: aarch64-apple-darwin | ||
- os: ubuntu-20.04 | ||
target: x86_64-unknown-linux-gnu | ||
- os: windows-2019 | ||
target: x86_64-pc-windows-msvc | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -45,8 +50,8 @@ jobs: | |
- name: Run tests | ||
run: yarn run test | ||
- name: Check test coverage | ||
if: ${{ contains(matrix.os, 'ubuntu') && matrix.node_version == '16' && matrix.rust_version | ||
== 'stable' && github.base_ref != '' }} | ||
if: ${{ contains(matrix.system.os, 'ubuntu') && matrix.node_version == '16' | ||
&& matrix.rust_version == 'stable' && github.base_ref != '' }} | ||
uses: anuraag016/[email protected] | ||
with: | ||
fullCoverageDiff: false | ||
|
@@ -56,14 +61,14 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
node_version: | ||
- '12' | ||
- '14' | ||
- '16' | ||
rust_version: | ||
- 1.56.0 | ||
- stable | ||
- beta | ||
node_version: | ||
- 12 | ||
- 14 | ||
- 16 | ||
os: | ||
- ubuntu-20.04 | ||
fail-fast: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters