Commit Graph

49 Commits

Author SHA1 Message Date
Mikolaj Wielgus ffb96ffff1 chore: Change reserved `debug` profile name to `dev`, the correct name, in CI
Also, it's `--cargo-profile`, not `--profile`, for `cargo nextest`.
2025-09-17 16:41:33 +02:00
Mikolaj Wielgus 23988477a2 chore: Fix `cargo build` command, there is no `-P` switch, only `--profile` 2025-09-17 16:34:00 +02:00
Mikolaj Wielgus 0c3c8c3e3d chore: Set build profile correctly this time in CI 2025-09-17 16:28:36 +02:00
Mikolaj Wielgus e60986133e chore: Add optimized release build and test to CI 2025-09-17 16:11:06 +02:00
Mikolaj Wielgus 5abce8b655 test: Report route lengths for benchmarking purposes 2025-09-17 14:38:46 +02:00
Mikolaj Wielgus 3b520b56c6 chore: Fix command invocation in CI 2025-09-15 17:06:11 +02:00
Mikolaj Wielgus 73080fb320 chore: Attempt to fix missing `cargo binstall` command error in CI 2025-09-15 15:52:54 +02:00
Mikolaj Wielgus 1ba0b47cef test: Use `cargo nextest` instead of `cargo test` to show test run times
This will be very useful for optimizing and benchmarking.
2025-09-15 15:33:42 +02:00
Mikolaj Wielgus 1fe87635bf chore: Run `committed HEAD` in addition to `committed develop..HEAD` in CI
This will make the CI detect malformed commit messages pushed straight
to the development branch without a PR.
2025-05-13 00:33:27 +02:00
Mikolaj Wielgus 594bb51a57 chore: Use `committed` instead of `conventional-pre-commit`
The most important difference in this PR is that we now enforce scope
and subject line length. `conventional-pre-commit`, which we have been
using until now, does not appear to allow that unlike `committed` which
we will be now using.

On the other hand, `committed` doesn't allow to require having a scope,
unlike `conventional-pre-commit`, but I will probably submit them a PR
for this later.

I also find it questionable that disabling particular checks is to be
done by switching boolean options to false. Doing so by string options
would be more future-proof.

Also note that this has a check to make sure the commit message starts
with a verb. I am fine with this myself, but it may be an overkill.
2025-04-30 11:22:23 +00:00
Mikolaj Wielgus c7a5da8b1a ci: remove file inclusions and exclusions
Some PRs don't seem to not run some of the CI steps, and this may be the
cause. The `-j4` flag should be sufficient to avoid straining Codeberg
CI.
2025-03-10 02:45:21 +01:00
Mikolaj Wielgus 225af3ebee ci: remove `-j4` from `cargo binstall` since it doesn't understand it 2025-01-09 23:17:17 +01:00
Mikolaj Wielgus b1aa6773de ci: pass `-j4` to cargo to prevent it from taking up all cores at once 2025-01-09 22:57:33 +01:00
Mikolaj Wielgus b6bf35033b ci: put `xdg-portal` in the `build_egui` test in verbatim to fix build error 2025-01-09 16:51:29 +01:00
Mikolaj Wielgus 3af4338743 ci: restore `xdg-portal` feature to fix CI run error 2025-01-09 16:43:04 +01:00
Mikolaj Wielgus 1439049ca4 ci: make egui and WASM builds steps instead of parallelly ran flows
This will reduce momentary strain in favor of running for a longer time.

Reference issue: https://codeberg.org/topola/topola/issues/155
2025-01-09 16:37:13 +01:00
Ellen Emilia Anna Zscheile f5153f870a ci(bctt): check for stable channel in 'when' condition 2025-01-09 15:36:37 +01:00
Ellen Emilia Anna Zscheile bd698027be ci: only run CI when relevant files changed 2025-01-09 15:21:27 +01:00
Mikolaj Wielgus cee521be5b chore(ci): run tests as step after building CLI instead of separate flow
This will reduce our CI usage by building Topola one time less. This is
needed because it turned out that we are straining the CI and were asked
to reduce our footprint:

https://codeberg.org/topola/topola/issues/155
2025-01-09 14:16:49 +01:00
Mikolaj Wielgus 8c46fcb2a2 chore(ci): disable nightly channel tests to reduce Codeberg's CI usage
Turns out that our usage of the Codeberg's CI has been excessive:

https://codeberg.org/topola/topola/issues/155

The `test` flow is the longest-running (due to contracts checks), yet
the least needed, so I'm disabling it for now.
2025-01-09 14:01:11 +01:00
Alain Emilia Anna Zscheile bbf54c9eb5 ci(egui): Select xdg-portal as backend for egui
Error message:
error: failed to run custom build command for `rfd v0.15.1`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `/woodpecker/src/codeberg.org/topola/topola/target/debug/build/rfd-df83cee8e4039bcf/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/rfd-0.15.1/build.rs:14:17:
  You need to choose at least one backend: `gtk3` or `xdg-portal` features
2025-01-02 17:36:55 +01:00
Mikolaj Wielgus fbc71e46dc chore(ci): correct name of `check_licensing` flow
I copied and changed it from `check_formatting`, but forgot to rename in
one place.
2024-12-30 01:07:27 +01:00
Mikolaj Wielgus 71d27c994e chore(ci): add `reuse lint` check to CI to check REUSE compliance 2024-12-30 00:58:11 +01:00
Mikolaj Wielgus 71cdc2794d chore(licensing): add REUSE headers to hidden files, `flake.nix`, `index.html`
I ran the following command in Fish shell:

```
reuse annotate --copyright="Topola contributors" --license="MIT" **/.gitignore {.woodpecker/*,.*}.yaml .rustfmt.toml flake.nix index.html
```
2024-12-30 00:18:38 +01:00
Mikolaj Wielgus 59478e0dbe chore(ci): replace running `pre-commit` with just a formatting check
Contrary to what I naively thought, `pre-commit` in CI does not result
in commit messages being checked. Another action `pre-commit` was
doing was running `cargo check`, but this is essentially the same as
building without compilation, and we are testing by building in other
CI-workflows. So we are left with only a formatting check, which does
not need installing and running `pre-commit`.
2024-12-29 03:03:35 +01:00
Alain Emilia Anna Zscheile 2d1af33204 build: put egui and cli into separate crates
* build(ci): try to fix CI
* build: use workspace dependencies for deduplication / drift avoidance
2024-11-20 15:44:02 +01:00
Mikolaj Wielgus 607fa056a4 ci(build_wasm): `cargo binstall trunk` instead of installing from source
This is intended to make the `build_wasm` CI check complete more quickly.
2024-10-07 02:39:16 +02:00
Mikolaj Wielgus a3f744cce8 ci: run pre-commit as lint
This reuses the `pre-commit` tool used starting today to avoid code
duplication.
2024-10-06 21:00:01 +02:00
Tomasz Cichoń cabe45e6b4 ci: install wasm target before building 2024-10-02 19:15:18 +02:00
Mikolaj Wielgus 4da0c244f3 ci/build_wasm: install Trunk before building 2024-10-02 14:07:36 +02:00
Mikolaj Wielgus 21cbaf1c05 ci: add WASM build test 2024-10-02 13:55:04 +02:00
crapStone 518e4f2daf
remove allowed failure 2024-10-01 23:56:40 +02:00
crapStone 9259c22755
fix ci 2024-10-01 23:43:42 +02:00
crapStone b2d480496b
also run clippy 2024-10-01 23:43:41 +02:00
crapStone 1302c91b7b
add lint step with cargo fmt 2024-10-01 23:43:40 +02:00
crapStone 181eaa7e2c
fix woodpecker warnings 2024-10-01 23:43:38 +02:00
Alain Emilia Anna Zscheile 49d7b3306b CI: don't run CI checks on pull_request_closed and such 2024-10-01 20:00:13 +00:00
hakki 5793f0635a CICD: fixed CLI build 2024-09-25 18:18:21 +02:00
hakki f0a193fc6e CICD: add cli build (#37)
Topola missed `CLI` build test in CI/CD,

Reviewed-on: https://codeberg.org/topola/topola/pulls/37
Co-authored-by: hakki <hakki@noreply.codeberg.org>
Co-committed-by: hakki <hakki@noreply.codeberg.org>
2024-09-24 19:03:07 +00:00
Mikolaj Wielgus 449e6885a8 ci: run with RUST_BACKTRACE=1 to provide more info on failure 2024-08-27 00:38:27 +02:00
Mikolaj Wielgus ff2c6cb260 ci: remove SDL2 bench build as we have removed it long ago 2024-08-22 02:01:18 +02:00
Mikolaj Wielgus 765d8495c6 tests: add four 3rd order SMD LC filters test 2024-06-01 00:34:09 +02:00
Mikolaj Wielgus 194383d9b3 ci: remove superfluous `cargo check` 2024-05-25 23:42:13 +02:00
Mikolaj Wielgus 3dd311c5fc contracts: use `disable_contracts` feature instead of checking channel 2024-05-25 22:46:06 +02:00
Mikolaj Wielgus 9502c05008 ci: build both in stable and nightly Rust 2024-05-25 21:54:48 +02:00
Mikolaj Wielgus 09f1e14e45 ci: attempt to install cmake in sdl2_build pipeline 2024-05-25 18:16:42 +02:00
Mikolaj Wielgus 2cb4c5d5f1 ci: add egui and sdl2 build tests 2024-05-25 17:46:37 +02:00
Mikolaj Wielgus 2f8cccea07 ci: build only with nightly for the time being 2024-05-24 23:30:29 +02:00
Mikolaj Wielgus fd969bcf24 ci: first attempt at build and testing pipeline 2024-05-24 23:28:32 +02:00