Skip to content

Commit 8e94fc2

Browse files
committed
ci: install ninja in CI
1 parent 1fa27ae commit 8e94fc2

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/CI.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ jobs:
5252
- os: ubuntu-22.04
5353
docker: node:18-alpine
5454
docker_cmd:
55-
apk add --no-cache pkgconfig curl tar python3 make gcc g++ cmake
56-
musl-dev && npm i -g pnpm && pnpm install && pnpm run
57-
build.prebuild
55+
apk add --no-cache pkgconfig curl tar python3 make gcc g++ cmake git
56+
musl-dev && npm i -g pnpm && pnpm install && pnpm run build
5857
node_version: 18
5958
node_arch: x64
6059
cpp_arch: x64
@@ -93,6 +92,7 @@ jobs:
9392
with:
9493
vcvarsall: ${{ contains(matrix.os, 'windows') }}
9594
cmake: true
95+
ninja: true
9696
python: true
9797
architecture: ${{ matrix.cpp_arch }}
9898

@@ -121,13 +121,13 @@ jobs:
121121
echo "PATH=$PATH" >> $GITHUB_ENV
122122
echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH" >> $GITHUB_ENV
123123
124-
- name: Install Dependencies and Build
124+
- name: Install Dependencies
125125
if: ${{ !matrix.docker }}
126126
run: pnpm install
127127

128-
- name: Prebuild
128+
- name: Build
129129
if: ${{ !matrix.docker }}
130-
run: pnpm run build.prebuild
130+
run: pnpm run build
131131

132132
- name: Prebuild Docker
133133
if: ${{ matrix.docker }}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
"build.downlevel": "downlevel-dts ./lib ./lib/ts3.7",
9595
"build.doc": "typedoc --options ./typedoc.json && minify-all -s docs-unminified -d docs --jsCompressor terser && shx rm -rf docs-unminified",
9696
"deploy.doc": "run-s build.doc && gh-pages --dist \"./docs\"",
97-
"build.prebuild": "run-s build.js && run-s build.native",
9897
"build.native": "cmake-ts nativeonly",
9998
"build.native.debug": "cmake-ts nativeonly",
10099
"build": "run-s build.js build.native",

0 commit comments

Comments
 (0)