55 Commits

Author SHA1 Message Date
dependabot[bot]
dbd01409a2 chore(deps): bump mozilla-actions/sccache-action
Bumps the github-actions group with 1 update: [mozilla-actions/sccache-action](https://github.com/mozilla-actions/sccache-action).


Updates `mozilla-actions/sccache-action` from 0.0.7 to 0.0.9
- [Release notes](https://github.com/mozilla-actions/sccache-action/releases)
- [Commits](https://github.com/mozilla-actions/sccache-action/compare/v0.0.7...v0.0.9)

---
updated-dependencies:
- dependency-name: mozilla-actions/sccache-action
  dependency-version: 0.0.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-10 02:57:20 +00:00
dependabot[bot]
7e9841a359 chore(deps): bump mozilla-actions/sccache-action
Bumps the github-actions group with 1 update: [mozilla-actions/sccache-action](https://github.com/mozilla-actions/sccache-action).


Updates `mozilla-actions/sccache-action` from 0.0.6 to 0.0.7
- [Release notes](https://github.com/mozilla-actions/sccache-action/releases)
- [Commits](https://github.com/mozilla-actions/sccache-action/compare/v0.0.6...v0.0.7)

---
updated-dependencies:
- dependency-name: mozilla-actions/sccache-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-01 01:32:43 +00:00
dependabot[bot]
ee7643c25a chore(deps): bump mozilla-actions/sccache-action (#428)
Bumps the github-actions group with 1 update: [mozilla-actions/sccache-action](https://github.com/mozilla-actions/sccache-action).


Updates `mozilla-actions/sccache-action` from 0.0.5 to 0.0.6
- [Release notes](https://github.com/mozilla-actions/sccache-action/releases)
- [Commits](https://github.com/mozilla-actions/sccache-action/compare/v0.0.5...v0.0.6)

---
updated-dependencies:
- dependency-name: mozilla-actions/sccache-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-01 14:06:47 +08:00
cyqsimon
1ca69e0691 CI: Use Powershell Compress-Archive to create Windows binary zip (#424)
* CI: Use Powershell Compress-Archive to create Windows binary zip

- Fixes #423

* Write changelog
2024-08-18 16:29:49 +08:00
dependabot[bot]
39bd161a78 chore(deps): bump mozilla-actions/sccache-action (#415)
Bumps the github-actions group with 1 update: [mozilla-actions/sccache-action](https://github.com/mozilla-actions/sccache-action).


Updates `mozilla-actions/sccache-action` from 0.0.4 to 0.0.5
- [Release notes](https://github.com/mozilla-actions/sccache-action/releases)
- [Commits](https://github.com/mozilla-actions/sccache-action/compare/v0.0.4...v0.0.5)

---
updated-dependencies:
- dependency-name: mozilla-actions/sccache-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-04 17:19:44 +08:00
dependabot[bot]
53793c10b9 chore(deps): bump taiki-e/cache-cargo-install-action (#411)
Bumps the github-actions group with 1 update: [taiki-e/cache-cargo-install-action](https://github.com/taiki-e/cache-cargo-install-action).


Updates `taiki-e/cache-cargo-install-action` from 1 to 2
- [Release notes](https://github.com/taiki-e/cache-cargo-install-action/releases)
- [Changelog](https://github.com/taiki-e/cache-cargo-install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/cache-cargo-install-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: taiki-e/cache-cargo-install-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-01 22:33:56 +08:00
cyqsimon
13ef09aefd CI: use sccache to speed up CI (#408)
* CI: use sccache to speed up CI

* Write changelog

* Only use sccache for non-cross targets
2024-04-16 19:49:53 +08:00
cyqsimon
3f649590f7 CI: Enable more cross-compiled builds (#401)
* CI: Enable more aarch64 builds

* Use cross for linux-aarch64-* builds

* Use `macos-14` explicitly for now

- https://github.com/orgs/community/discussions/116911
- https://github.blog/changelog/2024-04-01-macos-14-sonoma-is-generally-available-and-the-latest-macos-runner-image/

* Add targets in release.yaml

* Write changelog

* Fix typo

* Passthrough `BANDWHICH_GEN_DIR` into cross container

* Add armv7 targets
2024-04-16 14:39:35 +08:00
cyqsimon
d9fa0894a3 Temporarily disable UI tests (#406)
* Temporarily disable UI tests

- Too many sporadic errors occlude actual problems; see #400
- These tests will be re-enabled once the big refactor is complete

* Write changelog
2024-04-16 10:36:32 +08:00
dependabot[bot]
4c595b7a79 chore(deps): bump actions/upload-artifact in the github-actions group (#404)
Bumps the github-actions group with 1 update: [actions/upload-artifact](https://github.com/actions/upload-artifact).


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

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-15 22:58:15 +08:00
cyqsimon
1ce0311c23 CI: Remove musl-tools install step (#402)
* Test: what if we don't install MUSL tools?

* Write changelog
2024-04-15 18:04:55 +08:00
cyqsimon
86a17cb002 CI refactor (#399)
* CI refactor

* Don't error when no bandwhich stderr files are found

* Specify explicit target when running tests

* Fix typo

* Set `--color never` correctly for tests

* Unset `--color never`

- because the extraneous escape characters don't seem to be related to colours

* Write changelog
2024-04-15 15:07:54 +08:00
Felix Obenhuber
9354683481 Enable Android build (#384)
* Support build for target_os android

The target_os `android` is quite similar to `linux` but must be
mentioned in the guards explicitly. Tested for target
`aarch64-linux-android`.

* Add target aarch64-linux-android to ci

Use `cross` for building target `aarch64-linux-android`. In the `ci`
workflow the matrix branch of `os` `ubuntu-latest` is used because the
matrix organization is host os centric instead of target.

Releases are build with `cross` for target `aarch64-linux-android`.

Install `cross` if needed for a run. At the time of writing the latest
release of `cross` can't build binaries for target
`aarch64-linux-android` and it's common sense that the latest git tag or
`master` shall be used [1].

[1] https://github.com/cross-rs/cross/issues/1222

* Add android related readme section
2024-04-02 17:39:24 +08:00
cyqsimon
10e0d48f77 Fixes #378
Because I'm a blithering idiot and my hands are too fast for my own good
2024-03-01 17:47:01 +08:00
cyqsimon
1319437388 CI: use GitHub API to exempt dependabot from changelog requirement (#378)
* CI: use GitHub API to exempt dependabot from changelog requirement

* Write changelog
2024-03-01 17:42:39 +08:00
cyqsimon
b5e48ba9bb CI: include generated assets in release archive (#359)
* CI: include generated assets in release archive

* Write changelog
2024-01-30 13:29:01 +08:00
cyqsimon
aed83d833a CI: strip release binaries for all targets (#358)
* CI: strip release binaries for all targets

- This is now done using `rustc` flags directly

* Write changelog
2024-01-30 01:17:58 +08:00
cyqsimon
65638676e6 CI: Fix incorrect link 2024-01-28 00:19:22 +08:00
cyqsimon
53cfcd0c15 Upload changed snapshots from all dirs 2023-12-08 16:44:36 +08:00
cyqsimon
0a89c5aba5 Fix PR submitter detection (#342) 2023-12-08 15:49:41 +08:00
cyqsimon
23827065c2 CI: ensure a changelog entry exists for each PR (#331)
* CI: ensure a changelog entry exists for each PR

* Write CHANGELOG

* Fix grep by adding `-P`
2023-11-12 14:32:46 +08:00
cyqsimon
5d2ee96900 CI: amend #306
- I only installed npcap, but forgot to run the actual tests 🤦
2023-10-16 17:06:00 +08:00
cyqsimon
df171725cc CI: allow Windows tests to run if PR source is own repo (#306) 2023-10-16 16:37:44 +08:00
cyqsimon
4a27da5d56 CI: upload binaries as long as build step succeeds 2023-10-09 01:47:01 +08:00
cyqsimon
6989ce222a CI: allow manual triggering 2023-10-09 01:26:19 +08:00
cyqsimon
8c6be282a5 CI: make insta generate new snapshots in CI
See https://github.com/mitsuhiko/insta/issues/411
2023-10-08 10:25:54 +08:00
cyqsimon
18721fcef6 CI: set --color=never for cargo-insta 2023-10-08 02:30:04 +08:00
cyqsimon
138af25943 CI: test using cargo-insta 2023-10-08 01:19:16 +08:00
cyqsimon
47158ac3c7 CI: override default run condition for failed test snapshots upload step 2023-10-07 23:52:03 +08:00
cyqsimon
53f6feae17 CI: upload failed test snapshots 2023-10-07 23:43:19 +08:00
cyqsimon
4d1f62b46a CI: Use checkout v4 2023-10-07 23:18:56 +08:00
cyqsimon
e618fea18e CI: Auto fetch MSRV from Cargo.toml (#300)
* CI: Auto fetch MSRV from Cargo.toml

* CI: Forgot to checkout before fetching MSRV
2023-10-07 23:16:51 +08:00
cyqsimon
14298fc569 Always use github.ref_name for version number 2023-09-19 18:25:22 +08:00
cyqsimon
1778dc1186 Add comments in workflow definitions 2023-09-19 17:50:25 +08:00
cyqsimon
94bbb43faf Add publish crate workflow 2023-09-19 17:33:21 +08:00
cyqsimon
f50cdeb875 CD: automated workflow only ever drafts releases 2023-09-11 18:39:04 +08:00
cyqsimon
95635a62e0 CD: set correct version for binaries, this time for real 2023-09-11 18:01:44 +08:00
cyqsimon
a9fbc6d463 CD: set correct version for binaries 2023-09-11 17:43:22 +08:00
cyqsimon
c72c3ea4dd CD: Fix upload URL
- Not my last fuck-up after all
2023-09-11 16:52:55 +08:00
cyqsimon
49f3de7cc3 CD: Fix inconsistent matrix declaration
- Hopefully this is my last fuck-up
2023-09-11 16:43:45 +08:00
cyqsimon
f5fd81be64 CD: Fix incorrect tag pattern
Oops
2023-09-11 16:39:53 +08:00
cyqsimon
f733975987 Update CD 2023-09-11 16:36:17 +08:00
cyqsimon
e1bdc4c475 Disable tests on Windows for PRs 2023-08-31 21:58:32 +08:00
cyqsimon
dab58d18f7 Fix stuck CI on Windows 2023-08-30 11:09:29 +08:00
cyqsimon
872c7a286e Set correct MSRV (1.70.0) 2023-08-30 11:09:29 +08:00
cyqsimon
a8cdf18c9c Test MSRV 2023-08-30 11:09:29 +08:00
cyqsimon
9338067b0b Install pcap on Windows 2023-08-30 11:09:29 +08:00
cyqsimon
f37f70b074 Don't use mapfile to be compatible with Bash 3 on MacOS
This does assume that the path `target/*/build/bandwhich-*/stderr` contains no
spaces, but it should be fine.
2023-08-30 11:09:29 +08:00
cyqsimon
9c11b59c55 Improve build.rs STDERR logging
- Remove `set +x`
- Use GitHub Action's log grouping feature
  - See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions
2023-08-30 11:09:29 +08:00
cyqsimon
e57bb52981 Show build.rs STDERR for all targets 2023-08-30 11:09:29 +08:00