Skip to content

Commit

Permalink
ci: update build.yml to run on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Dafyh committed Aug 1, 2024
1 parent f948a55 commit 81668fd
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
uses: dcodeIO/setup-node-nvm@master
with:
node-version: '18'
node-version: 18

# - name: Set up Node.js
# uses: actions/setup-node@v4
# with:
# node-version: '18'

- name: Install dependencies
run: npm install
# - name: Install dependencies
# run: npm install

- name: Create a folder for the tarball
run: |
Expand Down Expand Up @@ -71,6 +73,14 @@ jobs:
- name: Configure and Build on OSX
if: contains(matrix.os, 'mac')
run: |
# Install Node.js
# brew uninstall node
node --version
# Delete nodes_modules
# rm -rf node_modules
npm install
# Install nasm (useful for vcpkg)
brew install nasm
Expand All @@ -87,7 +97,7 @@ jobs:
npm run build
# Run tests
# npm run test
npm run test
# Copy .node in the release folder
cp ./src/build/Release/converter.node ./release/lib/converter.${{ matrix.PLATFORM }}.node
Expand Down

0 comments on commit 81668fd

Please sign in to comment.