ci: add build alias for easier build artifact URLs (#852)

This commit is contained in:
Clement Tsang 2022-10-26 04:58:51 -04:00 committed by GitHub
parent 4240a38ced
commit 5eba26f9e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -26,9 +26,8 @@ cache_template: &CACHE_TEMPLATE
cleanup_template: &CLEANUP_TEMPLATE cleanup_template: &CLEANUP_TEMPLATE
before_cache_script: before_cache_script:
- rm -rf $HOME/.cargo/registry/index - rm -rf $HOME/.cargo/registry/index
- rm -rf $HOME/.cargo/registry/src
- rm -f ./target/.rustc_info.json - rm -f ./target/.rustc_info.json
- find ./target/debug -maxdepth 1 -type f -delete || true # Delete stray files if they exist
- find ./target/release -maxdepth 1 -type f -delete || true # Delete stray files
env: env:
CARGO_INCREMENTAL: 0 CARGO_INCREMENTAL: 0
@ -61,18 +60,20 @@ test_task:
<<: *CLEANUP_TEMPLATE <<: *CLEANUP_TEMPLATE
build_task: build_task:
only_if: $CIRRUS_RELEASE != "" || $CIRRUS_CRON == "nightly" only_if: $CIRRUS_RELEASE != "" || $CIRRUS_CRON == "nightly" || $CIRRUS_API_CREATED == true || $CIRRUS_BRANCH == "master"
env: env:
BTM_GENERATE: true BTM_GENERATE: true
COMPLETION_DIR: "target/tmp/bottom/completion/" COMPLETION_DIR: "target/tmp/bottom/completion/"
MANPAGE_DIR: "target/tmp/bottom/manpage/" MANPAGE_DIR: "target/tmp/bottom/manpage/"
matrix: matrix:
- name: "FreeBSD 13 Build" - name: "FreeBSD 13 Build"
alias: "freebsd_build"
freebsd_instance: freebsd_instance:
image_family: freebsd-13-1 image_family: freebsd-13-1
env: env:
TARGET: "x86_64-unknown-freebsd" TARGET: "x86_64-unknown-freebsd"
- name: "macOS M1 Build" - name: "macOS M1 Build"
alias: "macos_build"
macos_instance: macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest image: ghcr.io/cirruslabs/macos-monterey-base:latest
env: env:

View File

@ -199,6 +199,7 @@ sudo eopkg it bottom
``` ```
### Void ### Void
```bash ```bash
sudo xbps-install bottom sudo xbps-install bottom
``` ```
@ -283,7 +284,8 @@ You can also try to use the generated release binaries and manually install on y
- [Latest stable release](https://github.com/ClementTsang/bottom/releases/latest), generated off of the release branch - [Latest stable release](https://github.com/ClementTsang/bottom/releases/latest), generated off of the release branch
- [Latest nightly release](https://github.com/ClementTsang/bottom/releases/tag/nightly), generated daily off of the master branch at 00:00 UTC - [Latest nightly release](https://github.com/ClementTsang/bottom/releases/tag/nightly), generated daily off of the master branch at 00:00 UTC
- FreeBSD and ARM macOS binaries are generated via Cirrus CI, and for now, can be found [here](https://cirrus-ci.com/github/ClementTsang/bottom). - FreeBSD builds can be found [here](https://api.cirrus-ci.com/v1/artifact/github/ClementTsang/bottom/freebsd_build/binaries.zip)
- macOS ARM builds can be found [here](https://api.cirrus-ci.com/v1/artifact/github/ClementTsang/bottom/macos_build/binaries.zip)
#### Auto-completion #### Auto-completion