summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2022-10-27 06:27:04 -0400
committerGitHub <noreply@github.com>2022-10-27 06:27:04 -0400
commit51498e12388d2b29fa6d25465ed0175bf02e7dad (patch)
tree3df800d9005d97d70fbe299f0f47e0c3a089aa5c /.github/workflows
parent5eba26f9e5edee02122ee12711650f0c860c06ed (diff)
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
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build_releases.yml32
-rw-r--r--.github/workflows/deployment.yml3
-rw-r--r--.github/workflows/nightly.yml3
3 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/build_releases.yml b/.github/workflows/build_releases.yml
index 2bd3abbd..de3da73f 100644
--- a/.github/workflows/build_releases.yml
+++ b/.github/workflows/build_releases.yml
@@ -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"
diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml
index 814c8ec0..53d94ff9 100644
--- a/.github/workflows/deployment.yml
+++ b/.github/workflows/deployment.yml
@@ -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]
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index d4defa60..0384beba 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -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