From 9879d36ce28a83efde6e68548f5113dc175b0ddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Isager=20Dalsgar=C3=B0?= Date: Sun, 20 Oct 2024 09:50:51 +0200 Subject: [PATCH] Switch to `bare-make` --- .github/workflows/prebuild.yml | 24 +++++++++++++++++------- .github/workflows/test.yml | 6 ++++-- CMakeLists.txt | 4 ++-- package.json | 1 + 4 files changed, 24 insertions(+), 11 deletions(-) diff --git a/.github/workflows/prebuild.yml b/.github/workflows/prebuild.yml index 760873d..ad6fabc 100644 --- a/.github/workflows/prebuild.yml +++ b/.github/workflows/prebuild.yml @@ -15,20 +15,16 @@ jobs: - os: ubuntu-22.04 platform: android arch: x64 - flags: --android-ndk 26.1.10909125 --android-api 34 - os: ubuntu-22.04 platform: android arch: ia32 - flags: --android-ndk 26.1.10909125 --android-api 34 - os: ubuntu-22.04 platform: android arch: arm64 - flags: --android-ndk 26.1.10909125 --android-api 34 - os: ubuntu-22.04 platform: android arch: arm - flags: --android-ndk 26.1.10909125 --android-api 34 - - os: macos-12 + - os: macos-14 platform: darwin arch: x64 - os: macos-14 @@ -60,10 +56,24 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* - - run: npm install -g bare-runtime bare-dev + - run: npm install -g bare-runtime bare-make - run: npm install - - run: bare-dev install --platform ${{ matrix.platform }} --arch ${{ matrix.arch }} ${{ matrix.flags }} + - run: bare-make generate --platform ${{ matrix.platform }} --arch ${{ matrix.arch }} ${{ matrix.flags }} + - run: bare-make build + - run: bare-make install - uses: actions/upload-artifact@v4 with: name: ${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }} path: prebuilds/* + merge: + runs-on: ubuntu-latest + needs: prebuild + steps: + - uses: actions/download-artifact@v4 + with: + path: prebuilds + merge-multiple: true + - uses: actions/upload-artifact@v4 + with: + name: prebuilds + path: prebuilds diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 518b1bb..cb82702 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,7 +27,9 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* - - run: npm install -g bare-runtime bare-dev + - run: npm install -g bare-runtime bare-make - run: npm install - - run: bare-dev install --platform ${{ matrix.platform }} --arch ${{ matrix.arch }} --debug + - run: bare-make generate --platform ${{ matrix.platform }} --arch ${{ matrix.arch }} --debug + - run: bare-make build + - run: bare-make install - run: npm test diff --git a/CMakeLists.txt b/CMakeLists.txt index 2be04c7..6af84f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,8 @@ cmake_minimum_required(VERSION 3.25) -project(bare_pipe C) +find_package(cmake-bare REQUIRED PATHS node_modules/cmake-bare) -include(bare) +project(bare_pipe C) add_bare_module(bare_pipe) diff --git a/package.json b/package.json index 55aff51..d1df786 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "devDependencies": { "bare-path": "^3.0.0", "brittle": "^3.2.1", + "cmake-bare": "^1.1.6", "standard": "^17.0.0" } }