Skip to content

Commit

Permalink
feat: discriminates MacOS ARM64 from x86 #127
Browse files Browse the repository at this point in the history
  • Loading branch information
jshor committed Feb 24, 2025
1 parent e5105ad commit d5d0c4b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ jobs:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
# note: macos-13 supports x86, whereas macos-latest supports arm64
os: [windows-latest, macos-latest, macos-13, ubuntu-latest]
node-version: [18, 20, 22]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
Expand All @@ -42,21 +43,21 @@ jobs:
- name: Report coverage
run: yarn codecov
- name: Upload js bundle
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: js-bundle
path: dist
- name: Upload binary artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: binary-artifact
name: "${{ matrix.os }}.${{ matrix.node-version }}.zip"
path: build/stage

deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Pull latest
Expand All @@ -81,7 +82,7 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: TriPSs/conventional-changelog-action@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -95,11 +96,11 @@ jobs:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Download binary artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: binary-artifact
name: "${{ matrix.os }}.${{ matrix.node-version }}.zip"
path: build/stage
- name: Upload binary artifacts to release
# only one folder will be present in build/stage, which is named the new version number
Expand All @@ -119,17 +120,17 @@ jobs:
needs: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Pull latest
run: git pull origin main
- name: Download js bundle
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: js-bundle
path: dist
- uses: actions/setup-node@v1
with:
node-version: 20
node-version: 22
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ jobs:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
# note: macos-13 supports x86, whereas macos-latest supports arm64
os: [windows-latest, macos-latest, macos-13, ubuntu-latest]
# list only the earliest and latest node versions supported
# this makes PR builds more efficient
node-version: [18, 22]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
Expand Down

0 comments on commit d5d0c4b

Please sign in to comment.