Commit Graph

15 Commits

Author SHA1 Message Date
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
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
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
4d1f62b46a CI: Use checkout v4 2023-10-07 23:18:56 +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
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
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