Skip to content

Commit

Permalink
ci: create builds for node versions and arm64 mac
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj committed Jul 10, 2024
1 parent 0abd643 commit f88eb33
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions .github/workflows/publish-native-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
name: "Publish binaries"

on:
workflow_dispatch:
release:
types:
- created
- published
pull_request: {}
# workflow_dispatch:
# release:
# types:
# - created
# - published

jobs:
publish-github:
Expand All @@ -17,21 +18,21 @@ jobs:
# (https://github.com/bchr02/node-pre-gyp-github/issues/42)
fail-fast: false
matrix:
node_version: [18, 19, 20]
node-version: [18, 20, 22]
system:
- os: macos-11
target: x86_64-apple-darwin
- os: macos-12
target: x86_64-apple-darwin
- os: macos-13-xlarge # ARM https://github.com/actions/runner-images/blob/main/images/macos/macos-13-arm64-Readme.md
target: x86_64-apple-darwin
- os: macos-14 # ARM https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
target: x86_64-apple-darwin
- os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
include:
- node_version: 17
system:
os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
- node_version: 17
system:
os: macos-11
target: x86_64-apple-darwin

runs-on: ${{ matrix.system.os }}
steps:
- name: Checkout the repo
Expand Down Expand Up @@ -64,4 +65,4 @@ jobs:
NODE_PRE_GYP_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_BUILD_TARGET: ${{ matrix.system.target }}
working-directory: ./packages/indexer-native
run: yarn build-test-pack-publish
run: yarn build-release

0 comments on commit f88eb33

Please sign in to comment.