60 Commits

Author SHA1 Message Date
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