Skip to content

Commit

Permalink
Add universal builds to macOS (chaiNNer-org#2162)
Browse files Browse the repository at this point in the history
and use node 18 instead of 16
  • Loading branch information
stonerl authored Aug 29, 2023
1 parent 0801fb9 commit 1793a84
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: 'npm'
- run: npm ci
- name: publish --dry-run
shell: bash
run: npm run publish -- --dry-run
run: |
npm ci
if [[ "${{ matrix.os }}" != "macos-latest" ]]; then
npm run publish -- --dry-run
else
npm run publish -- --dry-run --arch=universal
fi
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: 'npm'
- run: npm ci
- name: macOS certificate
Expand All @@ -55,4 +55,10 @@ jobs:
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
shell: bash
run: npm run publish
run: |
npm ci
if [[ "${{ matrix.os }}" != "macos-latest" ]]; then
npm run publish
else
npm run publish -- --arch=universal
fi

0 comments on commit 1793a84

Please sign in to comment.