From 0984d0a2f460ca2e5f4ef5cc93f4268e3e61aa63 Mon Sep 17 00:00:00 2001 From: Nicolas MARTEAU Date: Thu, 1 Aug 2024 11:29:25 +0200 Subject: [PATCH] ci: update build.yml to run on macos --- .github/workflows/build.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da96985..c9f1e22 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,12 +26,9 @@ jobs: uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v4 + uses: dcodeIO/setup-node-nvm@master with: - node-version: '18' - - - name: Install dependencies - run: npm install + node-version: 18 - name: Create a folder for the tarball run: | @@ -83,11 +80,12 @@ jobs: ./vcpkg/vcpkg install libheif # Build project + npm install npm run configure 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