Skip to content

Commit 79ecb0d

Browse files
committed
add apple silicon build
1 parent c124299 commit 79ecb0d

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,31 @@ jobs:
215215
asset_path: ./build/Release/node-raylib.node
216216
asset_name: node-raylib-darwin-x64.node
217217
asset_content_type: application/octet-stream
218+
macos-apple-silicon:
219+
runs-on: macos-14
220+
needs: create_release
221+
steps:
222+
- name: checkout
223+
uses: actions/checkout@v2
224+
with:
225+
fetch-depth: 0
226+
- name: Cache Node Dependencies
227+
id: cache
228+
uses: actions/cache@v2
229+
with:
230+
path: ./node_modules
231+
key: modules-${{ hashFiles('package-lock.json') }}
232+
- name: Install Node Dependencies
233+
if: steps.cache.outputs.cache-hit != 'true'
234+
run: npm ci --ignore-scripts
235+
- name: Build Node Addon
236+
run: npm run compile
237+
- name: upload macos artifact
238+
uses: actions/upload-release-asset@v1
239+
env:
240+
GITHUB_TOKEN: ${{ github.token }}
241+
with:
242+
upload_url: ${{ needs.create_release.outputs.upload_url }}
243+
asset_path: ./build/Release/node-raylib.node
244+
asset_name: node-raylib-darwin-arm64.node
245+
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)