Friendly job names in build & deploy workflow
This commit is contained in:
parent
0a1003cda4
commit
eb23460aaf
1 changed files with 30 additions and 12 deletions
42
.github/workflows/build_deploy.yml
vendored
42
.github/workflows/build_deploy.yml
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
name: Build & Deploy
|
name: Build & Deploy
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * 3,6"
|
- cron: "0 0 * * 3,6" # Every Wednesday and Saturday at 00:00
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
is_release_build:
|
is_release_build:
|
||||||
|
|
@ -14,12 +14,15 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
prepare_build:
|
prepare_build:
|
||||||
|
name: Prepare Build
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
outputs:
|
outputs:
|
||||||
ci_tag: ${{ steps.set_vars.outputs.ci_tag }}
|
ci_tag: ${{ steps.set_vars.outputs.ci_tag }}
|
||||||
tag_created: ${{ steps.set_vars.outputs.tag_created }}
|
tag_created: ${{ steps.set_vars.outputs.tag_created }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set the tag and version
|
- name: Set the tag and version
|
||||||
id: tag_set
|
id: tag_set
|
||||||
run: |
|
run: |
|
||||||
|
|
@ -27,14 +30,15 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_ACTOR: ${{ github.actor }}
|
GITHUB_ACTOR: ${{ github.actor }}
|
||||||
IS_RELEASE_BUILD: ${{ github.event.inputs.is_release_build || 'false' }}
|
IS_RELEASE_BUILD: ${{ github.event.inputs.is_release_build || 'false' }}
|
||||||
|
|
||||||
- name: Set output
|
- name: Set output
|
||||||
id: set_vars
|
id: set_vars
|
||||||
run: |
|
run: |
|
||||||
echo "ci_tag=$CI_TAG" >> $GITHUB_OUTPUT
|
echo "ci_tag=$CI_TAG" >> $GITHUB_OUTPUT
|
||||||
echo "tag_created=$TAG_CREATED" >> $GITHUB_OUTPUT
|
echo "tag_created=$TAG_CREATED" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
|
||||||
osx_job:
|
osx_job:
|
||||||
|
name: macOS [${{ matrix.network }}]
|
||||||
needs: prepare_build
|
needs: prepare_build
|
||||||
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
||||||
runs-on: macOS-14
|
runs-on: macOS-14
|
||||||
|
|
@ -43,19 +47,22 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
network: ["TEST", "BETA", "LIVE"]
|
network: ["TEST", "BETA", "LIVE"]
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
- uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: ci/prepare/macos/prepare.sh
|
run: ci/prepare/macos/prepare.sh
|
||||||
|
|
||||||
- name: Build Artifact
|
- name: Build Artifact
|
||||||
run: ci/build-deploy.sh "/tmp/qt/lib/cmake/Qt5";
|
run: ci/build-deploy.sh "/tmp/qt/lib/cmake/Qt5";
|
||||||
env:
|
env:
|
||||||
NETWORK: ${{ matrix.network }}
|
NETWORK: ${{ matrix.network }}
|
||||||
CI_TAG: ${{ needs.prepare_build.outputs.ci_tag }}
|
CI_TAG: ${{ needs.prepare_build.outputs.ci_tag }}
|
||||||
|
|
||||||
- name: Deploy Artifact
|
- name: Deploy Artifact
|
||||||
run: ci/actions/deploy.sh
|
run: ci/actions/deploy.sh
|
||||||
env:
|
env:
|
||||||
|
|
@ -67,8 +74,8 @@ jobs:
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
AWS_DEFAULT_REGION: us-east-2
|
AWS_DEFAULT_REGION: us-east-2
|
||||||
|
|
||||||
|
|
||||||
linux_job:
|
linux_job:
|
||||||
|
name: Linux [${{ matrix.network }}]
|
||||||
needs: prepare_build
|
needs: prepare_build
|
||||||
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
@ -77,13 +84,16 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
network: ["TEST", "BETA", "LIVE"]
|
network: ["TEST", "BETA", "LIVE"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: sudo -E ci/prepare/linux/prepare.sh
|
run: sudo -E ci/prepare/linux/prepare.sh
|
||||||
|
|
||||||
- name: Build Artifact
|
- name: Build Artifact
|
||||||
run: ci/build-deploy.sh "/usr/lib/x86_64-linux-gnu/cmake/Qt5"
|
run: ci/build-deploy.sh "/usr/lib/x86_64-linux-gnu/cmake/Qt5"
|
||||||
env:
|
env:
|
||||||
|
|
@ -101,8 +111,8 @@ jobs:
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
AWS_DEFAULT_REGION: us-east-2
|
AWS_DEFAULT_REGION: us-east-2
|
||||||
|
|
||||||
|
|
||||||
linux_docker_job:
|
linux_docker_job:
|
||||||
|
name: Docker [${{ matrix.network }}]
|
||||||
needs: prepare_build
|
needs: prepare_build
|
||||||
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
@ -117,21 +127,25 @@ jobs:
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
IS_RELEASE_BUILD: ${{ github.event.inputs.is_release_build || 'false' }}
|
IS_RELEASE_BUILD: ${{ github.event.inputs.is_release_build || 'false' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
|
|
||||||
- name: Build Docker
|
- name: Build Docker
|
||||||
run: ci/actions/linux/docker-build.sh
|
run: ci/actions/linux/docker-build.sh
|
||||||
env:
|
env:
|
||||||
NETWORK: ${{ matrix.network }}
|
NETWORK: ${{ matrix.network }}
|
||||||
- name: Deploy Docker Hub
|
|
||||||
|
- name: Deploy Docker (Docker Hub)
|
||||||
if: env.DOCKER_PASSWORD != ''
|
if: env.DOCKER_PASSWORD != ''
|
||||||
run: ci/actions/linux/docker-deploy.sh
|
run: ci/actions/linux/docker-deploy.sh
|
||||||
env:
|
env:
|
||||||
NETWORK: ${{ matrix.network }}
|
NETWORK: ${{ matrix.network }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Deploy Docker (ghcr.io)
|
- name: Deploy Docker (ghcr.io)
|
||||||
run: ci/actions/linux/ghcr-deploy.sh
|
run: ci/actions/linux/ghcr-deploy.sh
|
||||||
env:
|
env:
|
||||||
|
|
@ -140,8 +154,8 @@ jobs:
|
||||||
DOCKER_USER: ${{ github.repository_owner }}
|
DOCKER_USER: ${{ github.repository_owner }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
||||||
windows_job:
|
windows_job:
|
||||||
|
name: Windows [${{ matrix.network }}]
|
||||||
needs: prepare_build
|
needs: prepare_build
|
||||||
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
if: ${{ needs.prepare_build.outputs.tag_created == 'true' }}
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
@ -150,18 +164,22 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
network: ["TEST", "BETA", "LIVE"]
|
network: ["TEST", "BETA", "LIVE"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
ref: ${{ needs.prepare_build.outputs.ci_tag }}
|
||||||
repository: ${{ github.repository }}
|
repository: ${{ github.repository }}
|
||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: ci/prepare/windows/prepare.ps1
|
run: ci/prepare/windows/prepare.ps1
|
||||||
|
|
||||||
- name: Build Artifact
|
- name: Build Artifact
|
||||||
run: ci/actions/windows/build.ps1
|
run: ci/actions/windows/build.ps1
|
||||||
env:
|
env:
|
||||||
CSC_LINK: ${{ secrets.CSC_LINK }}
|
CSC_LINK: ${{ secrets.CSC_LINK }}
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
||||||
|
|
||||||
- name: Deploy Artifact
|
- name: Deploy Artifact
|
||||||
run: ci/actions/windows/deploy.ps1
|
run: ci/actions/windows/deploy.ps1
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue