Skip to content

Commit

Permalink
Switch to bare-make
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Oct 20, 2024
1 parent 04a2dbf commit 76cc20b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 11 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
6 changes: 4 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.25)

project(bare_structured_clone C)
find_package(cmake-bare REQUIRED PATHS node_modules/cmake-bare)

include(bare)
project(bare_structured_clone C)

add_bare_module(bare_structured_clone)

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
},
"devDependencies": {
"brittle": "^3.1.1",
"cmake-bare": "^1.1.6",
"standard": "^17.0.0"
}
}

0 comments on commit 76cc20b

Please sign in to comment.