mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-11-16 18:58:37 +00:00
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
This commit is contained in:
1 parent
5eba26f9e5
commit
51498e1238
7 files changed
+226
-4
No files matched your search
@@ -8,6 +8,12 @@ name: "Build Releases"
|
||||
on:
|
||||
workflow_dispatch:
|
||||
workflow_call:
|
||||
inputs:
|
||||
caller:
|
||||
description: "The calling workflow."
|
||||
default: ""
|
||||
required: false
|
||||
type: string
|
||||
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
@@ -249,6 +255,32 @@ jobs:
|
||||
name: release
|
||||
path: release
|
||||
|
||||
build-cirrus:
|
||||
name: "Build using Cirrus CI"
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Create release directory
|
||||
run: |
|
||||
mkdir -p release
|
||||
|
||||
- name: Execute Cirrus CI build script
|
||||
env:
|
||||
CIRRUS_KEY: ${{ secrets.CIRRUS_TOKEN }}
|
||||
run: |
|
||||
python ./deployment/cirrus/build.py "${{ github.ref_name }}" "release/" "${{ inputs.caller }}"
|
||||
|
||||
- name: Save release as artifact
|
||||
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
|
||||
with:
|
||||
retention-days: 3
|
||||
name: release
|
||||
path: release
|
||||
|
||||
build-deb:
|
||||
name: "Build Debian installers"
|
||||
runs-on: "ubuntu-20.04"
|
||||
|
||||
@@ -50,6 +50,9 @@ jobs:
|
||||
build-release:
|
||||
needs: [initialize-release-job]
|
||||
uses: ./.github/workflows/build_releases.yml
|
||||
with:
|
||||
caller: "deployment"
|
||||
secrets: inherit
|
||||
|
||||
generate-choco:
|
||||
needs: [build-release]
|
||||
|
||||
@@ -36,6 +36,9 @@ jobs:
|
||||
build-release:
|
||||
needs: [initialize-job]
|
||||
uses: ./.github/workflows/build_releases.yml
|
||||
with:
|
||||
caller: "nightly"
|
||||
secrets: inherit
|
||||
|
||||
upload-release:
|
||||
name: upload-release
|
||||
|
||||
Reference in new issue
Block a user