@@ -2,7 +2,7 @@ name: Build & Test
2
2
3
3
env :
4
4
CARGO_TERM_COLOR : always
5
- RUSTFLAGS : " -D warnings"
5
+ # RUSTFLAGS: "-D warnings"
6
6
CROSS_DEBUG : 1
7
7
8
8
on :
25
25
- linux-arm
26
26
- linux-x64
27
27
- linux-x86
28
- - linux-powerpc64
28
+ # - linux-powerpc64
29
29
- windows-arm64
30
30
- windows-x64
31
31
- windows-x86
@@ -38,20 +38,20 @@ jobs:
38
38
# 2. Add a new record to the matrix map in `cli/npm/install.js`
39
39
- { platform: linux-arm64 , target: aarch64-unknown-linux-gnu , os: ubuntu-latest , use-cross: true }
40
40
- { platform: linux-arm , target: arm-unknown-linux-gnueabi , os: ubuntu-latest , use-cross: true }
41
- - { platform: linux-x64 , target: x86_64-unknown-linux-gnu , os: ubuntu-22.04 , features: wasm }
41
+ - { platform: linux-x64 , target: x86_64-unknown-linux-gnu , os: ubuntu-22.04 }
42
42
- { platform: linux-x86 , target: i686-unknown-linux-gnu , os: ubuntu-latest , use-cross: true }
43
- - { platform: linux-powerpc64 , target: powerpc64-unknown-linux-gnu , os: ubuntu-latest , use-cross: true }
43
+ # - { platform: linux-powerpc64 , target: powerpc64-unknown-linux-gnu , os: ubuntu-latest , use-cross: true }
44
44
- { platform: windows-arm64 , target: aarch64-pc-windows-msvc , os: windows-latest }
45
- - { platform: windows-x64 , target: x86_64-pc-windows-msvc , os: windows-latest , features: wasm }
45
+ - { platform: windows-x64 , target: x86_64-pc-windows-msvc , os: windows-latest }
46
46
- { platform: windows-x86 , target: i686-pc-windows-msvc , os: windows-latest }
47
- - { platform: macos-arm64 , target: aarch64-apple-darwin , os: macos-latest , features: wasm }
48
- - { platform: macos-x64 , target: x86_64-apple-darwin , os: macos-13 , features: wasm }
47
+ - { platform: macos-arm64 , target: aarch64-apple-darwin , os: macos-latest }
48
+ - { platform: macos-x64 , target: x86_64-apple-darwin , os: macos-13 }
49
49
50
50
# Cross compilers for C library
51
51
- { platform: linux-arm64 , cc: aarch64-linux-gnu-gcc , ar: aarch64-linux-gnu-ar }
52
52
- { platform: linux-arm , cc: arm-linux-gnueabi-gcc , ar: arm-linux-gnueabi-ar }
53
53
- { platform: linux-x86 , cc: i686-linux-gnu-gcc , ar: i686-linux-gnu-ar }
54
- - { platform: linux-powerpc64 , cc: powerpc64-linux-gnu-gcc , ar: powerpc64-linux-gnu-ar }
54
+ # - { platform: linux-powerpc64 , cc: powerpc64-linux-gnu-gcc , ar: powerpc64-linux-gnu-ar }
55
55
56
56
# Prevent race condition (see #2041)
57
57
- { platform: windows-x64 , rust-test-threads: 1 }
85
85
uses : actions-rust-lang/setup-rust-toolchain@v1
86
86
with :
87
87
target : ${{ matrix.target }}
88
+ cache : false
88
89
89
90
- name : Install cross
90
91
if : ${{ matrix.use-cross }}
@@ -157,43 +158,43 @@ jobs:
157
158
env :
158
159
WASMTIME_REPO : https://github.com/bytecodealliance/wasmtime
159
160
160
- - name : Build C library (make)
161
- if : ${{ runner.os != 'Windows' }}
162
- run : make.sh -j CFLAGS="$CFLAGS"
163
- env :
164
- CFLAGS : -g -Werror -Wall -Wextra -Wshadow -Wpedantic -Werror=incompatible-pointer-types
165
-
166
- - name : Build C library (CMake)
167
- if : ${{ !matrix.use-cross }}
168
- run : |
169
- cmake -S lib -B build/static \
170
- -DBUILD_SHARED_LIBS=OFF \
171
- -DCMAKE_BUILD_TYPE=Debug \
172
- -DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
173
- -DTREE_SITTER_FEATURE_WASM=$WASM
174
- cmake --build build/static --verbose
175
-
176
- cmake -S lib -B build/shared \
177
- -DBUILD_SHARED_LIBS=ON \
178
- -DCMAKE_BUILD_TYPE=Debug \
179
- -DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
180
- -DTREE_SITTER_FEATURE_WASM=$WASM
181
- cmake --build build/shared --verbose
182
- env :
183
- CC : ${{ contains(matrix.target, 'linux') && 'clang' || '' }}
184
- WASM : ${{ contains(matrix.features, 'wasm') && 'ON' || 'OFF' }}
185
-
186
- - name : Build wasm library
187
- # No reason to build on the same Github runner hosts many times
188
- if : ${{ !matrix.no-run && !matrix.use-cross }}
189
- shell : bash
190
- run : |
191
- cd lib/binding_web
192
- npm ci
193
- CJS=true npm run build
194
- CJS=true npm run build:debug
195
- npm run build
196
- npm run build:debug
161
+ # - name: Build C library (make)
162
+ # if: ${{ runner.os != 'Windows' }}
163
+ # run: make.sh -j CFLAGS="$CFLAGS"
164
+ # env:
165
+ # CFLAGS: -g -Werror -Wall -Wextra -Wshadow -Wpedantic -Werror=incompatible-pointer-types
166
+
167
+ # - name: Build C library (CMake)
168
+ # if: ${{ !matrix.use-cross }}
169
+ # run: |
170
+ # cmake -S lib -B build/static \
171
+ # -DBUILD_SHARED_LIBS=OFF \
172
+ # -DCMAKE_BUILD_TYPE=Debug \
173
+ # -DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
174
+ # -DTREE_SITTER_FEATURE_WASM=$WASM
175
+ # cmake --build build/static --verbose
176
+
177
+ # cmake -S lib -B build/shared \
178
+ # -DBUILD_SHARED_LIBS=ON \
179
+ # -DCMAKE_BUILD_TYPE=Debug \
180
+ # -DCMAKE_COMPILE_WARNING_AS_ERROR=ON \
181
+ # -DTREE_SITTER_FEATURE_WASM=$WASM
182
+ # cmake --build build/shared --verbose
183
+ # env:
184
+ # CC: ${{ contains(matrix.target, 'linux') && 'clang' || '' }}
185
+ # WASM: ${{ contains(matrix.features, 'wasm') && 'ON' || 'OFF' }}
186
+
187
+ # - name: Build wasm library
188
+ # # No reason to build on the same Github runner hosts many times
189
+ # if: ${{ !matrix.no-run && !matrix.use-cross }}
190
+ # shell: bash
191
+ # run: |
192
+ # cd lib/binding_web
193
+ # npm ci
194
+ # CJS=true npm run build
195
+ # CJS=true npm run build:debug
196
+ # npm run build
197
+ # npm run build:debug
197
198
198
199
- name : Build target
199
200
run : $BUILD_CMD build --release --target=${{ matrix.target }} --features=${{ matrix.features }}
@@ -211,17 +212,17 @@ jobs:
211
212
if : ${{ !matrix.no-run && inputs.run-test && steps.cache.outputs.cache-hit != 'true' }}
212
213
run : $BUILD_CMD run -p xtask -- generate-fixtures
213
214
214
- - name : Generate Wasm fixtures
215
- if : ${{ !matrix.no-run && !matrix.use-cross && inputs.run-test && steps.cache.outputs.cache-hit != 'true' }}
216
- run : $BUILD_CMD run -p xtask -- generate-fixtures --wasm
215
+ # - name: Generate Wasm fixtures
216
+ # if: ${{ !matrix.no-run && !matrix.use-cross && inputs.run-test && steps.cache.outputs.cache-hit != 'true' }}
217
+ # run: $BUILD_CMD run -p xtask -- generate-fixtures --wasm
217
218
218
219
- name : Run main tests
219
220
if : ${{ !matrix.no-run && inputs.run-test }}
220
221
run : $BUILD_CMD test --target=${{ matrix.target }} --features=${{ matrix.features }}
221
222
222
- - name : Run wasm tests
223
- if : ${{ !matrix.no-run && !matrix.use-cross && inputs.run-test }}
224
- run : $BUILD_CMD run -p xtask -- test-wasm
223
+ # - name: Run wasm tests
224
+ # if: ${{ !matrix.no-run && !matrix.use-cross && inputs.run-test }}
225
+ # run: $BUILD_CMD run -p xtask -- test-wasm
225
226
226
227
- name : Run benchmarks
227
228
# Cross-compiled benchmarks are pointless
@@ -236,23 +237,23 @@ jobs:
236
237
if-no-files-found : error
237
238
retention-days : 7
238
239
239
- - name : Upload Wasm artifacts
240
- if : ${{ matrix.platform == 'linux-x64' }}
241
- uses : actions/upload-artifact@v4
242
- with :
243
- name : tree-sitter.wasm
244
- path : |
245
- lib/binding_web/tree-sitter.js
246
- lib/binding_web/tree-sitter.js.map
247
- lib/binding_web/tree-sitter.cjs
248
- lib/binding_web/tree-sitter.cjs.map
249
- lib/binding_web/tree-sitter.wasm
250
- lib/binding_web/tree-sitter.wasm.map
251
- lib/binding_web/debug/tree-sitter.cjs
252
- lib/binding_web/debug/tree-sitter.cjs.map
253
- lib/binding_web/debug/tree-sitter.js
254
- lib/binding_web/debug/tree-sitter.js.map
255
- lib/binding_web/debug/tree-sitter.wasm
256
- lib/binding_web/debug/tree-sitter.wasm.map
257
- if-no-files-found : error
258
- retention-days : 7
240
+ # - name: Upload Wasm artifacts
241
+ # if: ${{ matrix.platform == 'linux-x64' }}
242
+ # uses: actions/upload-artifact@v4
243
+ # with:
244
+ # name: tree-sitter.wasm
245
+ # path: |
246
+ # lib/binding_web/tree-sitter.js
247
+ # lib/binding_web/tree-sitter.js.map
248
+ # lib/binding_web/tree-sitter.cjs
249
+ # lib/binding_web/tree-sitter.cjs.map
250
+ # lib/binding_web/tree-sitter.wasm
251
+ # lib/binding_web/tree-sitter.wasm.map
252
+ # lib/binding_web/debug/tree-sitter.cjs
253
+ # lib/binding_web/debug/tree-sitter.cjs.map
254
+ # lib/binding_web/debug/tree-sitter.js
255
+ # lib/binding_web/debug/tree-sitter.js.map
256
+ # lib/binding_web/debug/tree-sitter.wasm
257
+ # lib/binding_web/debug/tree-sitter.wasm.map
258
+ # if-no-files-found: error
259
+ # retention-days: 7
0 commit comments