Commit graph

56 commits

Author SHA1 Message Date
dependabot[bot]
5880df47e2 ci: bump actions/checkout from 5 to 6 in the actions group
Bumps the actions group with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 5 to 6
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-24 22:41:27 +01:00
dependabot[bot]
790dcc115f ci: bump the actions group with 2 updates
Bumps the actions group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [actions/download-artifact](https://github.com/actions/download-artifact).


Updates `actions/checkout` from 4 to 5
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

Updates `actions/download-artifact` from 4 to 5
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/download-artifact
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-13 12:35:25 +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
WillLillis
1fdd1d250c ci: separate nightly lints to separate job 2025-03-02 16:37:03 -05:00
Amaan Qureshi
11410b5a8e ci: add linting step for web-tree-sitter 2025-01-21 12:36:15 -05:00
Amaan Qureshi
72807e187e ci: don't run ci if documentation files & friends have changed 2024-12-24 23:09:44 -05: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
Will Lillis
5c6445edea
chore: misc clippy lints 2024-10-06 17:55:00 -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
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
dundargoc
a994562121 ci: don't cancel jobs on master
It can be useful to see the full results of all master commits when
trying to bisect a regression.
2024-02-20 14:10:42 +01:00
dundargoc
c3ab70cc98 ci: rework release strategy
Switch the release trigger from PR to a git tag. In practice this would
mean tagging a commit in master branch and pushing it with
`git push --tags`.

The benefit of this is that tagging is already an event that is reserved
for maintainers, so we can remove the need for verifying whether the
event was done by a maintainer.

We also no longer need to keep track of the tag. Previously the trigger
was a PR which has a different ref from the tag, so manual bookkeeping
was required to ensure github used the tag reference instead of the PR
reference. Having the tagging itself be the trigger removes this need
entirely as the default checkout will already use the tag as reference.
2024-02-06 14:48:50 +01:00
Andrew Hlynskyi
cc4f932d17 cicd: new workflow 2023-04-04 03:42:16 +03:00
Andrew Hlynskyi
ced103b519 ci: rustup install rustfmt and clippy 2023-01-15 19:18:51 +02:00
Andrew Hlynskyi
7a56f08154 ci: bump setup-emsdk action version to @v12 2023-01-15 19:18:51 +02:00
Andrew Hlynskyi
e733a07a5c Update CI action versions 2023-01-06 10:05:27 +02:00
Max Brunsfeld
4bf5149a18 Run cargo test directly on CI 2022-03-02 17:12:25 -08:00
Andrew Helwer
815c281c48 Fix ci.yml format 2021-09-28 18:52:12 -04:00
Andrew Helwer
8eef790a61 Build rust with warnings=errors 2021-09-28 18:51:09 -04:00
Andrew Helwer
652235a6b8 Moved windows build out into separate job 2021-09-28 18:45:27 -04:00
Andrew Helwer
eeff48d79f Specify bash shell 2021-09-28 18:35:40 -04:00
Andrew Helwer
02253866d7 Added windows to github CI workflow 2021-09-28 18:28:56 -04:00
Max Brunsfeld
4d64c2b939 Put emscripten-version file in cli directory
This lets the CLI crate build without relying on sibling directories.
2021-09-03 13:57:45 -07:00
Andrew Hlynskyi
a286f831c7 Bump Emscripten version to 2.0.24 2021-06-30 01:06:33 +03:00
Vladimir Panteleev
b14ea51e3d
Refactor emscripten/emsdk version to a single file 2021-06-29 21:39:12 +00:00
Andrew Hlynskyi
96ad90a646 CI: Add 'cargo fmt -- --check' to ci.yml
The step is placed right after Rust installation to fail faster.
2021-05-19 23:21:43 +03:00
Andrew Hlynskyi
9ee8ddb6b6 Fail CI in case of compiler warnings like dead_code 2021-04-30 06:55:00 +03:00
Max Brunsfeld
699af84259 Don't rely on bash 4.0 to lowercase platform name on CI 2021-02-11 17:08:14 -08:00
Max Brunsfeld
457c565266 Lowercase the OS in release asset filenames 2021-02-11 16:14:28 -08:00
Max Brunsfeld
0943dc27a2 Run CI for version tags 2021-02-11 15:21:04 -08:00
Max Brunsfeld
9857438d9b Revert "Print out tar version in CI"
This reverts commit 9c480bee23.
2021-02-05 11:26:40 -08:00
Max Brunsfeld
9c480bee23 Print out tar version in CI 2021-02-05 10:35:13 -08:00
Max Brunsfeld
4c93178488 Revert "Revert "Remove emscripten caching again""
This reverts commit 82dad76b98.
2021-02-05 10:27:18 -08:00
Max Brunsfeld
82dad76b98 Revert "Remove emscripten caching again"
This reverts commit 94eeb0662f.
2021-02-05 09:44:32 -08:00
Max Brunsfeld
8050c4026c ci: Use gnu tar on macOS 2021-02-05 09:44:29 -08:00
Max Brunsfeld
d6ad7484a6 Fix install-rust step in GH CI 2021-01-11 16:59:05 -08:00
Max Brunsfeld
94eeb0662f Remove emscripten caching again 2021-01-11 16:13:43 -08:00
Max Brunsfeld
4bedff9c75 Include emscripten version in cache key 2021-01-11 16:03:54 -08:00
Max Brunsfeld
ffef8f53f6 Publish assets to GH releases from CI on tagged builds 2021-01-11 15:46:17 -08:00
Max Brunsfeld
2f5a6598fa Try again with caching for emscripten 2021-01-11 15:02:50 -08:00
Max Brunsfeld
c1660d201d Don't cache emscripten stuff for now 2021-01-11 14:37:42 -08:00
Max Brunsfeld
f94d67b42a Use a publisehd action for setting up emscripten on CI 2021-01-11 14:21:52 -08:00
Max Brunsfeld
ea8a2dcb8e Add macOS build to GH actions CI 2021-01-05 12:21:55 -08:00
Max Brunsfeld
9dd35e7853 Build wasm binding, run wasm tests on GH actions 2020-12-03 09:39:12 -08:00
Max Brunsfeld
00d25e8298 Use caching in GH actions 2020-12-01 17:56:01 -08:00
Max Brunsfeld
abef4a7417 Use stable rust, remove custom rustc flags 2020-12-01 17:38:22 -08:00
Patrick Thomson
3b121894c2 Is it make that's whining? 2020-11-24 14:38:29 -05:00
Patrick Thomson
cdb108b781 Try not building wasm because it's making actions very sad 2020-11-24 14:24:25 -05:00
Patrick Thomson
dd78781403 whoops 2020-11-24 13:49:43 -05:00