Commit Graph

73 Commits

Author SHA1 Message Date
Clement Tsang a90c32eb73 ci: update rust-cache to 2.4.0 (#1174) 2023-05-27 00:22:29 -04:00
Clement Tsang 2c13683eb3 ci: pin and update some workflow actions (#1145)
* ci: pin and update some workflow actions

* also update setup-python

* and rust-toolchain
2023-05-11 00:42:39 -04:00
ClementTsang 3239bce86b ci: update some ci docs 2023-05-07 00:42:35 -04:00
Clement Tsang bb94355cfc ci: allow skipped CI workflow to mean success (#1134) 2023-05-06 13:59:43 -04:00
Clement Tsang f237babb58 ci: output a failure in the completion step if a previous step failed (#1128)
* ci: output a failure in the completion step if a previous step failed

* test

* okay now if I add failure

* yoink

* always

* use needs syntax
2023-05-05 04:28:04 -04:00
Clement Tsang c8c64b0c80 ci: run build on unsupported platforms instead of check, bump cross version (#1083) 2023-04-03 04:45:36 -04:00
Clement Tsang 10b8673c04 ci: bump fkirc/skip-duplicate-actions to v5.3.0 (#1059) 2023-03-13 01:02:29 -04:00
Clement Tsang 4f1ac8255f ci: go back to using default cache key + target, update to 2.2.1 (#1058)
* ci: go back to using default cache key + target, update to 2.2.1

* fix formatting
2023-03-13 01:01:23 -04:00
Clement Tsang 7f4e762921 ci: use sparse crates.io registries in CI (#1057) 2023-03-12 15:43:30 -04:00
Clement Tsang 870c29e6e0 ci: add coverage actions for macOS and windows (#1030)
* ci: add coverage actions for macOS and windows

* specify target as name

* use flags
2023-02-26 00:01:08 -05:00
ClementTsang 449d735601 ci: specify where part of the CI workflow is 2023-02-22 00:01:28 -05:00
Clement Tsang 1ad38db3a4 ci: reduce CI timeout to 18 minutes (#1028)
* ci: reduce CI timeout to 15 minutes

* add additional timeouts

* go with 18 minutes for safety
2023-02-21 04:09:19 -05:00
Clement Tsang 2a1c4104fd other: promote macOS aarch64 to official support (#1025)
Since I have a macOS M1 laptop to test on now, I think it's a good time
to bump it to be officially supported, especially since it's going
to be the main macOS platform for the foreseeable feature.
2023-02-19 01:12:13 -05:00
Clement Tsang d62bdc5cab ci: fix CI concurrency grouping (#961)
Seems like we want `github.ref`, not `github.event.ref`, which is
blank.
2023-01-05 21:42:41 -05:00
Clement Tsang d8da12ffab ci: add a timeout for builds and CI (#930) 2022-12-09 03:50:49 -05:00
Clement Tsang 97bf8bf295 ci: fix missing envs in build workflow (#891)
Made a mistake in not testing properly and broke the build workflow with
missing envs.
2022-11-12 02:29:15 -05:00
Clement Tsang f41e7cd66d ci: unify cache keys in actions (#890)
* ci: unify cache keys in actions

* some docs

* because empty strings are false in JS

* update comment

* fix build cache naming
2022-11-11 23:45:27 -05:00
Clement Tsang 5f849e81e6 ci: add back target as cache key (#879) 2022-11-08 20:01:13 -05:00
Clement Tsang 8c3e9669b8 ci: only enable ci cache if not a PR or not a fork (#872)
* ci: only enable ci cache if not a PR or not a fork

* add to coverage
2022-11-06 02:50:45 -05:00
Clement Tsang 6f95aaee34 ci: remove caching for release building (#866)
* ci: remove caching for release building

* standardize hyphen across some job names
2022-11-04 04:48:44 -04:00
Clement Tsang d56b551e39 ci: try only having cancel-in-progress for non-main branch (#864) 2022-11-02 01:29:41 -04:00
Clement Tsang 3296feae50 ci: unify CI workflow with one ending step (#860)
* ci: unify CI workflow with one ending step

* update PR template
2022-10-30 19:20:41 -04:00
Clement Tsang e3ced72c2f ci: add skip based on file changes for Cirrus tests (#859)
* ci: add skip based on file changes for Cirrus tests
2022-10-29 05:37:45 -04:00
Clement Tsang fec56372bb ci: use one skip check for CI workflow (#855)
Use one single skip check job for CI like other workflows.
2022-10-27 22:00:37 -04:00
Clement Tsang 4240a38ced ci: test cancelling stale actions (#851)
Use Github Action's concurrency settings to cancel old actions in favour of newer ones.
2022-10-25 01:24:08 -04:00
Clement Tsang fc90c549ef ci: update GitHub CI to remove deprecated/unmaintained actions and commands (#846)
* ci: update rust-cache to 2.0.1

* ci: update dtolnay/rust-toolchain to ba37adf

* ci: update skip-duplicate-actions to v5.2.0

* ci: update ClementTsang/cargo-action to v0.0.3

* ci: update to macos-12

* ci: update ghaction-chocolatey to 2.1.0

* ci: update upload-artifact to v3.1.0

* ci: change from actions-rs to rustsec for audit-check

* ci: stop using actions-rs for builds

* ci: update cirrus to use tlsv1.2 when curling

* ci: disable macOS ARM workflows on GHA since its built on Cirrus
2022-10-20 06:24:04 -04:00
Clement Tsang 530f6bf3b3 ci: add basic Cirrus CI testing for FreeBSD + M1 (#827)
* ci: add basic Cirrus CI testing for FreeBSD + M1

* add env vars

* remove curl installation from macos script

* add caching
2022-10-20 01:27:14 -04:00
ClementTsang df13d12551 Revert "ci: add basic Cirrus CI testing for FreeBSD + M1 (#826)"
This reverts commit 577165292c.
2022-10-12 17:54:02 -04:00
Clement Tsang 577165292c ci: add basic Cirrus CI testing for FreeBSD + M1 (#826) 2022-10-12 17:45:45 -04:00
Clement Tsang 510aa5c404 ci: try simpler cross/cargo action for builds and tests (#767)
Uses a personal action for simpler invocations of cargo/cross commands.
2022-07-16 00:34:18 -04:00
Clement Tsang e33603d8ee ci: try to update cross to 0.2.4 (#764)
Try to update to the newest cross version after 0.2.2 had some bugs causing a rollback to 0.2.1 (see #755).
2022-07-12 05:22:15 -04:00
Clement Tsang 4ca68b621d ci: fix missing target in tests (#757)
Fix missing target parameter for primary test targets (e.g. aarch64), and adjust integration tests to work with cross.
2022-06-27 01:36:45 -04:00
Clement Tsang 6468f8af58 ci: lock cross to 0.2.1 on CI as well (#756)
Locks CI to cross 0.2.1.
2022-06-25 23:03:14 -04:00
Clement Tsang 0c648ed14a ci: try moving to rust-toolchain (#745)
action-rs' action seems to not be really maintained anymore and
throws some redundant warnings that kinda clog up outputs. As
such, I feel like moving to a more active action is probably worth it.
2022-06-02 18:04:51 -04:00
Clement Tsang 7e1a0a9744 ci: bump checkout to v3 (#744)
Bumps `checkout` calls to v3.
2022-06-02 15:05:43 -04:00
Clement Tsang 42909dba35 ci: fix missing aarch64 build (#738) 2022-05-25 17:06:38 -04:00
Clement Tsang 9882a9bd08 ci: move cargo fmt step into supported job (#722)
Moves the rustfmt step into the supported job, to avoid having to wait too long for machine spinup time if they are separate jobs.
2022-05-01 17:53:08 -04:00
ClementTsang 715af44efc ci: create deploy feature; test in CI
This encompasses features that we want on deployment.
2022-05-01 17:30:20 -04:00
ClementTsang 6e2ea8eeda ci: remove caching step from cargo fmt check 2022-05-01 17:12:20 -04:00
ClementTsang 8cc361e443 ci: clean up ci workflow 2022-05-01 16:56:40 -04:00
ClementTsang a9da449cef ci: update rust-cache to 1.4.0 2022-05-01 15:47:30 -04:00
Clement Tsang e646a76630 ci: disable debug symbols and incremental in CI, force locked #719
Disables incremental compilation and debug symbols in CI and other related workflows, since they're not used there at all. Also forces --locked as needed.
2022-04-29 18:15:49 -04:00
Clement Tsang d43bd6147d bug: change as_ref() to build in Rust beta 1.61.0 (#711)
This changes various as_ref() calls as needed in order for bottom to successfully build in Rust beta 1.61, as they were causing type inference issues. These calls were either removed or changed to an alternative that does build (e.g. as_slice()).

Functionally, there should be no change.

For context, see:
- https://github.com/ClementTsang/bottom/issues/708
- https://github.com/rust-lang/rust/issues/96074
2022-04-27 18:34:49 -04:00
Clement Tsang 9a11ead991 ci: Use commit hash for some actions to pin them (#641)
Pins some actions using a specific commit hash.
2021-12-22 17:29:50 -05:00
Clement Tsang c4caa87e0b ci: switch action's accepted files back to "paths" 2021-11-28 04:04:23 -05:00
Clement Tsang 16f0913307 ci: deal with skipping, matrices, reliant jobs (#617)
This time, the problem is that since the matrix jobs rely on another job, they never trigger and clog up CI.
2021-11-27 06:39:22 -05:00
Clement Tsang 5c8757a1fa ci: deal with skipping and matrix (#616)
Due to how matrices work with if/skipping, it seems like this ugly hack is the only way to skip CI based on the files updated without clogging the PR pipeline.
2021-11-27 06:27:51 -05:00
Clement Tsang 363138abab ci: go back to a paths_ignore for ci workflow (#615)
Reverts to using paths_ignore for CI workflow.
2021-11-27 05:53:41 -05:00
ClementTsang b9683a65f2 ci: be more specific with paths for ci/codecov 2021-11-27 05:31:32 -05:00
Clement Tsang afcf56e4ae ci: actually skip ci if duplicate (#611)
Forgot the if line to actually skip ci if duplicate...
2021-11-27 05:07:39 -05:00