Will Lillis
49ae48f7fe
fix(ci): ignore mismatched_lifetime_syntaxes lint when building wasmtime
2025-08-08 09:44:09 +02:00
Antonin Décimo
aa11c198af
ci: don't build the C library with MinGW
...
Only the C compiler is currently installed, without its binutils.
2025-07-14 11:02:19 +03:00
Will Lillis
1a2167b155
fix(ci): run generate crate unit tests
2025-07-06 17:05:21 -04:00
Christian Clason
a6cd6abcfb
ci(nvim-ts): update paths to refactor
...
Problem: After https://github.com/tree-sitter/tree-sitter/pull/4496 , the
crater tests from nvim-treesitter no longer run on PRs with relevant changes.
Solution: Update the paths in the workflows to the new structure.
Also throttle the build step to 10 parallel tasks (reduces flakiness on
Windows).
Also raise the timeout limit to 30 minutes (it's more expensive to have
to restart flaky tests than to let them run).
2025-06-27 16:34:17 +02:00
Max Brunsfeld
0fdf569571
Reorganize rust crates into a flat crates directory, simplify some CI steps ( #4496 )
...
* Move all rust crates (except lib) into crates dir, w/o nesting
* Remove stale path from .gitattributes
* Rename lib.rs files for easier navigation
* Rename mod.rs file for easier navigation
* Fix emscripten-version path
* Fix fixtures dir paths
* Use the default rustfmt settings
* Don't use nightly on CI
2025-06-06 14:25:37 -07:00
Will Lillis
45a281c962
fix(ci): trigger build_wasm workflow when xtask is modified
2025-04-16 18:06:48 -04:00
dependabot[bot]
89b04babfb
ci: bump actions/create-github-app-token in the actions group
...
Bumps the actions group with 1 update: [actions/create-github-app-token](https://github.com/actions/create-github-app-token ).
Updates `actions/create-github-app-token` from 1 to 2
- [Release notes](https://github.com/actions/create-github-app-token/releases )
- [Commits](https://github.com/actions/create-github-app-token/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: actions/create-github-app-token
dependency-version: '2'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-04-08 10:18:03 +02:00
Simon Willshire
ee8d529552
fix(rust): use core crates for no_std
...
also add `no_std` build to CI
2025-03-25 14:30:32 +01:00
WillLillis
1fdd1d250c
ci: separate nightly lints to separate job
2025-03-02 16:37:03 -05:00
Antonin Décimo
f0571b1e33
feat: Windows support using MinGW-w64 ( #4201 )
...
Building tree-sitter on Windows within a Cygwin or MSYS2 environment
for MinGW-w64 targets should work. As there's no configure-like step,
the tools have to be specified with:
make CC=x86_64-w64-mingw32-gcc \
AR=x86_64-w64-mingw32-ar \
STRIP=x86_64-w64-mingw32-strip
Useful reference:
[How to build and use DLLs on Windows](https://nullprogram.com/blog/2021/05/31/ )
This commit doesn't tag public functions with dllexport or
dllimport. This results in exporting non-static functions visible
between translation units, and generating slightly less efficient code
for calling exported functions from the DLL.
This commit doesn't include support to build libtree-sitter with MSVC or
clang-cl, but generates a libtree-sitter.lib file for MSVC/clang-cl
consumers.
2025-02-12 16:31:06 -08:00
Amaan Qureshi
8e79929cb8
ci: remove benchmark step
...
We don't actually use this data, it runs without a purpose
2025-02-11 22:56:50 -05:00
Amaan Qureshi
0a33135483
ci: rename web files, and upload a tarball for web-tree-sitter assets
2025-02-11 22:56:50 -05:00
Amaan Qureshi
ac8a4ba80e
ci: use ubuntu-22.04 for x64 builds
2025-02-01 14:27:58 -05:00
Amaan Qureshi
67619dab5c
ci(release): correct build steps for web-tree-sitter
2025-01-26 14:15:01 -05:00
Amaan Qureshi
aa900bf6ed
ci: go back to emulating linux arm64
...
These runners segfault when running basic rustc commands, we're not
using these till GH gets it together.
2025-01-25 03:20:43 -05:00
Amaan Qureshi
a4b20c1c56
feat: publish both CJS and ESM files
...
This way, users can pick whichever one works for their needs
2025-01-21 12:36:15 -05:00
Amaan Qureshi
b1e39d2dba
fix(xtask): adapt check-wasm-exports to web changes
2025-01-21 12:36:15 -05:00
Amaan Qureshi
11410b5a8e
ci: add linting step for web-tree-sitter
2025-01-21 12:36:15 -05:00
Amaan Qureshi
a633a06bb4
ci: add arm ubuntu runner, & use latest runners
2025-01-19 22:13:09 -05:00
Amaan Qureshi
3414bbd48e
ci(release): use the ref name for the release tag
2025-01-12 13:41:59 -05:00
Amaan Qureshi
b75ca0b957
ci: update docs workflow
2025-01-10 02:58:38 -05:00
WillLillis
dcdd6ce2d2
feat(xtask): check wasm exports
2025-01-06 01:55:15 -05:00
Amaan Qureshi
2304109eab
ci: fix typo
2025-01-02 21:40:49 -06:00
Amaan Qureshi
0a58175e46
ci(emscripten): set the git user and email with the cli
2025-01-02 21:40:49 -06:00
dependabot[bot]
af6f668659
ci: bump actions/configure-pages from 4 to 5 in the actions group
...
Bumps the actions group with 1 update: [actions/configure-pages](https://github.com/actions/configure-pages ).
Updates `actions/configure-pages` from 4 to 5
- [Release notes](https://github.com/actions/configure-pages/releases )
- [Commits](https://github.com/actions/configure-pages/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/configure-pages
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
...
Signed-off-by: dependabot[bot] <support@github.com>
2025-01-02 21:12:33 -06:00
Will Lillis
c712276676
ci: use correct xtask command to update emscripten
2024-12-30 20:11:12 -05:00
Amaan Qureshi
490f79bca2
ci: don't install cross if it already exists
2024-12-29 00:54:16 -05:00
Amaan Qureshi
e9b95078c7
ci(bindgen): only check bindgen output when api.h or bindings.rs changes
2024-12-24 23:09:44 -05:00
Amaan Qureshi
f6c325df0b
ci(docs): only re-deploy docs when any file in docs has changed
2024-12-24 23:09:44 -05:00
Amaan Qureshi
72807e187e
ci: don't run ci if documentation files & friends have changed
2024-12-24 23:09:44 -05:00
Amaan Qureshi
043969ef18
docs: migrate to mdbook
2024-12-24 20:54:59 -05:00
Amaan Qureshi
47a2f042d5
ci: add workflow to update emscripten
2024-12-19 08:00:51 -05:00
Will Lillis
c7b218838d
fix: minor issues with CI
...
* update ctor
* pass empty `RUSTFLAGS` when installing cross, overriding
the default `-D warnings`
* fix some clippy lints
* create `target` directory before curling wasmtime lib
2024-12-03 16:41:38 -05:00
Amaan Qureshi
ab306f543f
ci: add bindgen workflow
2024-10-29 18:51:27 -04:00
ObserverOfTime
60c5057617
ci: build lib with wasmtime
2024-10-19 02:57:08 +00:00
dundargoc
fb23de9261
ci: add nvim-treesitter parser tests
...
This allows contributors to know whether their changes affect the
ecosystem and inadvertantly make a breaking change.
2024-10-14 16:28:22 +02:00
ObserverOfTime
e8e56255bd
ci: major overhaul
...
- Simplify some workflow steps and auxiliary scripts
- Build library using cmake when not cross-compiling
- Try to fetch fixtures from cache first
- Use `actions-rust-lang/setup-rust-toolchain`
2024-10-11 18:33:07 -04:00
Amaan Qureshi
dbe8bbf480
feat: move scripts to xtasks
2024-10-08 21:07:41 -04:00
Will Lillis
5c6445edea
chore: misc clippy lints
2024-10-06 17:55:00 -04:00
Amaan Qureshi
f48c210dbd
ci: add backport workflow
2024-09-01 15:18:43 -04:00
ObserverOfTime
055d0cbd34
feat(dsl)!: support other JS runtimes
2024-05-24 16:53:33 -04:00
ObserverOfTime
572cdaa7c0
ci: fix address sanitizer step
2024-05-05 13:06:45 -04:00
Will Lillis
3a42c27061
ci: add nightly rustfmt to workflow
2024-05-02 02:34:39 -04:00
dundargoc
a1c39d4760
ci: simplify workflows
2024-03-16 19:54:54 -04:00
dependabot[bot]
2e596e379e
ci: bump the actions group with 1 update
...
Bumps the actions group with 1 update: [softprops/action-gh-release](https://github.com/softprops/action-gh-release ).
Updates `softprops/action-gh-release` from 1 to 2
- [Release notes](https://github.com/softprops/action-gh-release/releases )
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md )
- [Commits](https://github.com/softprops/action-gh-release/compare/v1...v2 )
---
updated-dependencies:
- dependency-name: softprops/action-gh-release
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: actions
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-03-12 01:45:19 -04:00
Christian Clason
59838de33a
ci: don't skip tests on failing lint
...
Problem: A failing lint will block running actual tests, adding friction to contributors who will have to golf the linter before getting to see actually useful test results.
Solution: Don't gate `sanitize` and `build` behind successful `checks` so you can see whether your code works at all _before_ worrying about its quality. (In general, the more feedback you get at the same time, the fewer edit->push->test cycles you need, _saving_ CI time in the long run. Only skip tests you are sure to be useless given previous failures.)
2024-02-28 16:31:21 +01:00
Amaan Qureshi
4e2880407c
feat: add xtasks to assist with bumping crates
2024-02-25 13:40:03 -05:00
Amaan Qureshi
591a10de33
ci: remove hotfix
2024-02-21 15:37:31 -05:00
Amaan Qureshi
4408c1570e
fix: publish in the right order now
2024-02-21 15:24:47 -05:00
Amaan Qureshi
a5b7c2a584
fix: publish 0.21.0 to registries
2024-02-21 15:11:37 -05:00