Add support for Python 3.10, Node.js 17, and Node.js on Apple Silicon to build pipelines

This commit is contained in:
Wilson Lin 2021-11-12 15:30:37 +11:00
parent 2a458483f3
commit 694bb2cb8e
3 changed files with 9 additions and 6 deletions

View File

@ -11,7 +11,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11.0, ubuntu-18.04, windows-2019, self-hosted]
os: [macos-11.0, ubuntu-18.04, windows-2019, self-hosted-linux-arm64]
include:
- os: macos-11.0
ARCH: macos-x86_64
@ -25,7 +25,7 @@ jobs:
ARCH: windows-x86_64
MIME: application/vnd.microsoft.portable-executable
EXT: '.exe'
- os: self-hosted
- os: self-hosted-linux-arm64
ARCH: linux-arm64
MIME: application/octet-stream
EXT: ''

View File

@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
feature: [core, js]
os: [macos-11.0, ubuntu-18.04, windows-2019, self-hosted]
os: [macos-11.0, ubuntu-18.04, windows-2019, self-hosted-linux-arm64, self-hosted-macos-arm64]
steps:
- uses: actions/checkout@v1
@ -22,11 +22,13 @@ jobs:
run: echo ::set-output name=VERSION::"$([[ "$GITHUB_REF" == refs/tags/v* ]] && echo ${GITHUB_REF#refs/tags/v} || echo '0.0.0')"
- name: Set up Node.js
if: runner.name != 'macos-arm64'
uses: actions/setup-node@master
with:
node-version: 15.x
node-version: 17.x
- name: Set up Rust
if: runner.name != 'macos-arm64'
uses: actions-rs/toolchain@v1
with:
toolchain: stable
@ -38,6 +40,7 @@ jobs:
run: .\.github\workflows\gcc.ps1
- name: Set up Go
if: runner.name != 'macos-arm64'
uses: actions/setup-go@v2
with:
go-version: '^1.14.0'
@ -81,7 +84,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@master
with:
node-version: 15.x
node-version: 17.x
- name: Pack and publish package
working-directory: ./nodejs
run: |

View File

@ -13,7 +13,7 @@ jobs:
matrix:
feature: [core, js]
os: [macos-11.0, ubuntu-18.04, windows-2019]
python: [3.7, 3.8, 3.9]
python: [3.7, 3.8, 3.9, 3.10]
steps:
- uses: actions/checkout@v1
- name: Set up Python