Skip to content

Macos

Macos #22

name: Macos
on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch:
jobs:
update:
name: Macos
strategy:
matrix:
arch: [amd64, arm64]
include:
- arch: arm64
os: macos-14
is_arm: true
- arch: amd64
os: macos-13
runs-on: ${{ matrix.os }}
steps:
- name: Install building tools
run: brew install node python ninja nasm git
- name: Clone the repo
run: git clone https://github.com/devraymondsh/libnode-distributable
- name: Run ccache-cache
uses: hendrikmuhs/[email protected]
with:
create-symlink: true
key: ${{ github.workflow }}-${{ matrix.arch }}
- name: Run the script
env:
CC: "cc"
CXX: "c++"
ARCH: ${{ matrix.arch }}
run: cd libnode-distributable && node index.js
- name: Find the shared library
run: find libnode-distributable/node -name libnode.dylib\* -not -name '*.TOC' -not -name '*.toc' -exec ls {} \;