From 1ef4cc6d1b5942dbace655cf673847ad062525e7 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Wed, 28 Aug 2024 13:20:48 +0200 Subject: [PATCH] Fix node-gyp building on MacOS --- .github/workflows/ci.yml | 12 ++++++++++-- binding.gyp | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 502fa3d..34dc397 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,8 +10,16 @@ jobs: test: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: + - ubuntu-20.04 + - ubuntu-22.04 + - ubuntu-latest + - macos-12 + - macos-13 + - macos-14 + - macos-latest node-version: - 18.x - 20.x @@ -34,7 +42,7 @@ jobs: **/node_modules .rdf-test-suite-cache .rdf-test-suite-ldf-cache - key: ${{ runner.os }}-test-modules-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-${{ runner.node-version }}-test-modules-${{ hashFiles('**/package-lock.json') }} - name: Install dependencies run: npm install - name: Run tests diff --git a/binding.gyp b/binding.gyp index 3003f32..8882267 100644 --- a/binding.gyp +++ b/binding.gyp @@ -38,6 +38,7 @@ ], "defines": [ "HAVE_CDS", + "_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION", ], "cflags!": [ "-fno-rtti", "-fno-exceptions" ], "cflags_cc!": [ "-fno-rtti", "-fno-exceptions" ],