Commit Graph

44 Commits

Author SHA1 Message Date
Clement Tsang
7c14aa2666
ci: bump actions/checkout to v4.1.1 (#1322) 2023-11-18 19:15:28 -05:00
Clement Tsang
4174012b8f
ci: test if building with musl on Rust > 1.71 works again (#1302)
* ci: test if building with musl on Rust > 1.71 works again

* use cross instead?

* specify cross version to fix build issue

* Update build_releases.yml
2023-09-24 03:11:08 -04:00
Clement Tsang
5d455354dd
bump clap and add nushell/fig completions (#1300)
* add nushell and fig completion generation

* now bump clap

* bump cargo-action too

* add rust-version key and set to 1.70.0, N-2
2023-09-12 03:36:45 -04:00
Clement Tsang
f38fbf0d8b
ci: add .desktop file (#1296)
* ci: add .desktop file

* move to a separate desktop folder

* also skip one more file
2023-09-06 19:12:28 -04:00
Clement Tsang
44cc00564a
ci: pin musl to 1.71.0 for now when building releases (#1282) 2023-08-24 23:21:03 -04:00
Clement Tsang
9ad72bf365
ci: use cargo-action v0.0.4 (#1207)
* ci: use cargo-action v0.0.4

* comments/labels
2023-06-15 02:05:47 -04:00
Clement Tsang
6c7635038d
ci: add RPM package generation (#1206)
* ci: add RPM package generation

* edit container

* fix install
2023-06-15 00:26:54 -04:00
Clement Tsang
e602cc7a39
ci: update various dependencies as of 2023-06-11 (#1201)
Updates:
- actions/checkout
- crazy-max/ghaction-choclatey
- actions/setup-python
2023-06-11 02:16:29 -04:00
Clement Tsang
9ec95a9740
ci: add a build check for aarch64-linux-android (#1124)
* ci: add a build check for aarch64-linux-android

* appease clippy

* use 1.67.0 for Android due to NDK issue

* remove sparse since it is default now for 1.70 and causes issues with older versions anyway
2023-06-11 02:01:56 -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
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
61fec230fc
ci: add musl build targets for .deb generation (#1061)
* ci: add musl build targets for .deb generation

* add missing container

* try to fix musl rename condition
2023-03-13 03:25:40 -04:00
Clement Tsang
7f4e762921
ci: use sparse crates.io registries in CI (#1057) 2023-03-12 15:43:30 -04:00
Clement Tsang
e7a5f297bc
ci: update the upload artifact action to v3.1.2 (#1054) 2023-03-10 00:00:42 -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
9a696122c7
ci: try removing cache from build workflow (#972) 2023-01-13 01:15:10 -05:00
Clement Tsang
6e2b276836
ci: remove git hash and nightly tag from deb file name (#970)
* ci: switch deb nightly builds back to the same string as normal

Easier to stay consistent, I guess.

* disable cache for cargo deb

* reenable cache

* nvm
2023-01-12 06:23:36 -05:00
Clement Tsang
fffeb206de
ci: follow .deb naming conventions (#969)
Change the .deb file generation back to following standard naming conventions.
2023-01-12 03:41:15 -05:00
Clement Tsang
2dfb8c490f
ci: add timeout to build workflow caching (#957)
* ci: add timeout and skip for cache in build workflow

* use for all
2023-01-05 20:38:49 -05:00
Clement Tsang
7c53f088c3
ci: add build hash to nightly builds for version (#951)
This adds the build hash to the btm -V output for nightly builds, making it easier to troubleshoot when someone might have obtained a nightly build, and what commit it corresponds to.
2023-01-02 15:18:05 -05:00
Clement Tsang
d7e9fd6be0
other: run rustfmt (#949) 2023-01-01 04:35:08 -05:00
Clement Tsang
0adefababf
ci: use a better way of getting branch from tagged builds for CirrusCI (#948)
* ci: use a better way of getting branch from tagged builds for CirrusCI

* add a bit more logging
2023-01-01 03:18:47 -05:00
Clement Tsang
4d5a58c3ec
ci: default to master branch on tag release (#943) 2022-12-31 21:50:17 -05:00
Clement Tsang
0fa11fb5c5
ci: disable cache for cross release gen (#942) 2022-12-31 21:14:18 -05:00
Clement Tsang
d8da12ffab
ci: add a timeout for builds and CI (#930) 2022-12-09 03:50:49 -05:00
Clement Tsang
9e4aed7d56
ci: bump cargo deb in CI (#906) 2022-11-20 04:28:23 -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
5649b850a8
ci: update upload-artifact to 3.1.1 to remove set-output warnings (#887) 2022-11-11 02:48:25 -05:00
Clement Tsang
7ae8e66a3a
ci: add cache clearing to PR merges (#874)
* ci: add cache clearing to PR merges

* some renaming

* small change to force cache

* add manual run option
2022-11-06 03:44:02 -05:00
Clement Tsang
29bc0b67ba
ci: rename deployment folder to scripts (#873) 2022-11-06 03:19:52 -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
8985e6ab67
ci: update comment on what build_release does 2022-10-28 00:37:24 -04:00
Clement Tsang
51498e1238
ci: automatically create and get build artifacts from Cirrus CI (#854)
This automatically triggers and grabs the build artifacts for systems that are only supported on Cirrus CI (as of now, FreeBSD and M1 macOS).

* ci: add cirrus build trigger script

* ci: modify build scripts to include cirrus build

* fix some stuff

* update docs

* more fixes
2022-10-27 06:27:04 -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
14808b3a2e
ci: completion/manpage generation script spring cleaning (#795)
* ci: spring cleaning of completions autogen

This commit changes a few things/cleans up stuff:
- Completion and manpage generation now drops the files off in
  `./target/tmp/bottom` rather than arbitrarily in the build directory.
  This was originally done because I was lazy and just needed it to work
  in CI, but it's kinda gross if you want to build the manpages in your
  own directory.
- CI was updated to handle this.
- Only run if the `BTM_GENERATE` env var is actually non-empty.

* docs: update for manpage/completion gen

* ci: auto delete autogen comp/manpage dir

* ci: fix incorrect mv for autogen

The mv was too late, should be earlier in the workflow.

* ci: specify shell in autogen delete

* docs: more updates to manpage/comp docs

* ci: unify env vars

* ci: skip autogen on build-msi
2022-08-30 18:25:16 -04:00
Clement Tsang
2e0771d483
ci: update release build OS to ubuntu 20.04 (#780)
Due to the deprecation of Ubuntu 18.04 as a runner target this PR updates the OS to 20.04 (see https://github.com/actions/runner-images/issues/6002), the next supported version of Ubuntu.
2022-08-13 12:14:51 -04:00
Clement Tsang
fcb8cac0d5
ci: add ARM macOS to build workflow (#779)
Adds macOS ARM to the build workflow for nightly/release.
2022-08-13 11:53:07 -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
89f7705e21
deployment: force usage of cross 0.2.1 for now (#755)
Locks cross in deployment builds to 0.2.1, as 0.2.2 seems to break some things for now.
2022-06-25 22:22:30 -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
6745736622
deployment: unify build release action between nightly/deploy (#743)
Unifies nightly and deployment workflows using a shared action yml file to avoid as much duplication. Also updates the download-artifact action to v3.
2022-06-02 05:10:17 -04:00