Commit Graph

44 Commits

Author SHA1 Message Date
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
2ec13c5013 Enable dependabot 2023-09-25 09:07:07 +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
cyqsimon
04e3a2aac6 CI: switch to dtolnay/rust-toolchain 2023-08-25 14:46:11 +08:00
cyqsimon
ef67b325d5 CI: disable fail fast 2023-08-25 14:06:56 +08:00
cyqsimon
552d982c8f CI: build should come before clippy 2023-08-25 11:38:44 +08:00
cyqsimon
ff044d42e2 Update CI 2023-08-25 11:33:02 +08:00
Aram Drevekenin
45503a01a6 docs(sponsorship): add my Github Sponsors 2022-02-19 10:11:08 +01:00
remgodow
58187b49d1 chore(ci): build binaries using Github actions. (#181)
* Remove connections vector from OpenSockets, use common OpenSockets implementation based on sysinfo and netstat2.

* Replace termion backend with crossterm, which works on Windows as well.

* More fixes for windows build.

* Remove tui default-features (termion), update unit tests for crossterm.

* Windows compilation fixes.

* Remove unused get_open_sockets implementations for linux and mac. Fix formatting.

* Add build.rs for windows to download and extract Packet.lib from npcap SDK.

* Resolve Cargo.lock after merging main.

* fix(tests): adjust snapshots new location of the dns resolution

* style(clippy): clippy

* style(clippy): remove dead code

* Test github actions.

* Fix action syntax.

* Fix "Show build.rs stderr" step.

* Add artifact upload step.

* style(clippy): use write_all in build.rs

* Fix path in upload binary step

* style(clippy): remove unused import added by Intellij

* Separate upload artifacts actions for Windows.

* Troubleshooting windows artifacts upload.

* Fix typo

* Bump upload-artifact to v2.

* fix(review): change branch name to main, remove nightly

* feat(infra): test builds on nightly rust

* fix(infra): remove debug logs from ci action

* feat(infra): release github action

* fix: merge issues

* fix(release): add linux generic

* feat(infra): build musl on release

* feat(infra): fix release verioning

* feat(infra): another try for fixing versioning

* fix(infra): use version from version step instead of release id

* fix(infra): fix add macos target variable, use --target for cargo build

* fix(infra): add musl-tools required by musl target

* fix(infra): fix action

* fix(infra): fix action

* fix(build): trigger build-release action when release has been created on github, tar executable without directories

* fix(debug): remove actions branch

Co-authored-by: Aram Drevekenin <aram@poor.dev>
2020-09-20 12:22:53 +02:00