Skip to content

Commit

Permalink
Fix Node.js release to special target, the macos-latest in GitHub A…
Browse files Browse the repository at this point in the history
…ctions is an arm64.

actions/runner-images#9741
  • Loading branch information
huacnlee committed May 8, 2024
1 parent ed4e6b4 commit 998662f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/release-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: Release Node
env:
DEBUG: napi:*
APP_NAME: autocorrect-node
MACOSX_DEPLOYMENT_TARGET: '10.13'
MACOSX_DEPLOYMENT_TARGET: "10.13"
on:
push:
tags:
- 'v*'
- "v*"
branches:
- 'release-node'
- "release-node"
defaults:
run:
working-directory: autocorrect-node
Expand All @@ -22,7 +22,7 @@ jobs:
- host: macos-latest
target: x86_64-apple-darwin
build: |
yarn build
yarn build --target x86_64-apple-darwin
strip -x *.node
- host: windows-latest
build: |
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
node-version: 18
check-latest: true
cache: yarn
cache-dependency-path: 'autocorrect-node/yarn.lock'
cache-dependency-path: "autocorrect-node/yarn.lock"
- name: Install
uses: actions-rs/toolchain@v1
if: ${{ !matrix.settings.docker }}
Expand Down Expand Up @@ -110,14 +110,14 @@ jobs:
node-version: 18
check-latest: true
cache: yarn
cache-dependency-path: 'autocorrect-node/yarn.lock'
cache-dependency-path: "autocorrect-node/yarn.lock"
architecture: x86
- name: Build in docker
uses: addnab/docker-run-action@v3
if: ${{ matrix.settings.docker }}
with:
image: ${{ matrix.settings.docker }}
options: '--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build'
options: "--user 0:0 -v ${{ github.workspace }}/.cargo-cache/git/db:/usr/local/cargo/git/db -v ${{ github.workspace }}/.cargo/registry/cache:/usr/local/cargo/registry/cache -v ${{ github.workspace }}/.cargo/registry/index:/usr/local/cargo/registry/index -v ${{ github.workspace }}:/build -w /build"
run: ${{ matrix.settings.build }}
- name: Build
run: ${{ matrix.settings.build }}
Expand All @@ -142,8 +142,8 @@ jobs:
- host: windows-latest
target: x86_64-pc-windows-msvc
node:
- '18'
- '20'
- "18"
- "20"
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -172,8 +172,8 @@ jobs:
fail-fast: false
matrix:
node:
- '18'
- '20'
- "18"
- "20"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -202,8 +202,8 @@ jobs:
fail-fast: false
matrix:
node:
- '18'
- '20'
- "18"
- "20"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:
node-version: 16
check-latest: true
cache: yarn
cache-dependency-path: 'autocorrect-node/yarn.lock'
cache-dependency-path: "autocorrect-node/yarn.lock"
- name: Cache NPM dependencies
uses: actions/cache@v3
with:
Expand Down

0 comments on commit 998662f

Please sign in to comment.