Skip to content

Commit

Permalink
Use cmake-fetch for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Nov 11, 2024
1 parent 082b9b4 commit 531c204
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 12 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ jobs:
name: ${{ matrix.platform }}-${{ matrix.arch }}${{ matrix.tags }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: lts/*
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:
name: ${{ matrix.platform }}-${{ matrix.arch }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: lts/*
Expand Down
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
cmake_minimum_required(VERSION 3.25)

find_package(cmake-bare REQUIRED PATHS node_modules/cmake-bare)
find_package(cmake-fetch REQUIRED PATHS node_modules/cmake-fetch)
find_package(cmake-napi REQUIRED PATHS node_modules/cmake-napi)
find_package(cmake-npm REQUIRED PATHS node_modules/cmake-npm)

project(bitarray_native C)

if(NOT TARGET bitarray)
add_subdirectory(vendor/libbitarray EXCLUDE_FROM_ALL)
endif()
fetch_package("github:holepunchto/libbitarray#74d3ef3")

add_bare_module(bitarray_native_bare)

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"bare-compat-napi": "^1.0.0",
"brittle": "^3.1.0",
"cmake-bare": "^1.1.15",
"cmake-fetch": "^1.1.0",
"cmake-napi": "^1.0.7",
"cmake-npm": "^1.0.2",
"standard": "^17.0.0"
Expand Down
1 change: 0 additions & 1 deletion vendor/libbitarray
Submodule libbitarray deleted from b0b0d1

0 comments on commit 531c204

Please sign in to comment.