From 54d50936b4fb4df633fdc02585aa63934ab3e0a7 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 | 6 ++---- binding.gyp | 6 +++++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 502fa3d..762780c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,11 +11,9 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest, macos-13] node-version: - 18.x - - 20.x - - 22.x steps: - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 @@ -36,7 +34,7 @@ jobs: .rdf-test-suite-ldf-cache key: ${{ runner.os }}-test-modules-${{ hashFiles('**/package-lock.json') }} - name: Install dependencies - run: npm install + run: npm install --verbose - name: Run tests run: npm run test - name: Run bin diff --git a/binding.gyp b/binding.gyp index 3003f32..262341d 100644 --- a/binding.gyp +++ b/binding.gyp @@ -46,7 +46,11 @@ "GCC_ENABLE_CPP_EXCEPTIONS": "YES", "OTHER_CFLAGS": [ "-stdlib=libc++", - "-Wno-register" + "-Wno-register", + "-std=gnu++14" + ], + "OTHER_CFLAGS_CC": [ + "-std=gnu++14" ], }, },