From 694bb2cb8e4767b30716e694bc2ab359f4c331c4 Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Fri, 12 Nov 2021 15:30:37 +1100 Subject: [PATCH] Add support for Python 3.10, Node.js 17, and Node.js on Apple Silicon to build pipelines --- .github/workflows/cli.yml | 4 ++-- .github/workflows/nodejs.yml | 9 ++++++--- .github/workflows/python.yml | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index ecbadec..1cd7c98 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -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: '' diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index a83b7cb..de3be20 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -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: | diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 112d10b..de929d6 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -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