ci-staging: split build action #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Linux Release Builds' | ||
on: | ||
workflow_call: | ||
inputs: | ||
do_package: | ||
required: false | ||
type: boolean | ||
default: false | ||
do_package_symbols: | ||
required: false | ||
type: boolean | ||
default: false | ||
retention_days: | ||
required: false | ||
type: number | ||
default: 14 | ||
run_build: | ||
required: true | ||
type: boolean | ||
jobs: | ||
ci-testing: | ||
name: Linux Build | ||
environment: public-github-runners | ||
runs-on: ubuntu-22.04 | ||
if: inputs.run_build == true | ||
steps: | ||
- name: checkout workflows and actions | ||
uses: actions/checkout@v3 | ||
with: | ||
sparse-checkout: '.github/**' | ||
submodules: false | ||
- name: setup build environment | ||
uses: ./.github/actions/sil-kit-ci-setup-build-environment | ||
id: setup-build-environment | ||
with: | ||
preset-name: linux-release | ||
do-package: ${{ inputs.do_package }} | ||
retention-days: ${{ env.retention_days }} | ||
- name: configure build | ||
uses: ./.github/actions/sil-kit-ci-configure-build | ||
id: configure-build | ||
with: | ||
preset-name: linux-release | ||
do-package: ${{ inputs.do_package }} | ||
retention-days: ${{ env.retention_days }} | ||
# - name: pull docker container | ||
# run: docker pull ghcr.io/mariusbgm/sil-kit-ci-ubuntu-22.04:main | ||
# clang14-release: | ||
# name: Clang 14 release Builds for Ubuntu 22.04 | ||
# environment: public-github-runners | ||
# runs-on: ubuntu-22.04 | ||
# if: inputs.run_build == true | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# with: | ||
# submodules: true | ||
# - uses: ./.github/actions/build-cmake-preset | ||
# with: | ||
# preset-name: clang14-release | ||
# do-package: ${{ inputs.do_package }} | ||
# retention-days: ${{ inputs.retention_days }} | ||
# | ||
# gcc-release: | ||
# name: GCC release Builds for Ubuntu 22.04 | ||
# environment: public-github-runners | ||
# runs-on: ubuntu-latest | ||
# container: | ||
# image: ghcr.io/mariusbgm/sil-kit-ci-ubuntu-22.04:main | ||
# if: inputs.run_build == true | ||
# steps: | ||
# - name: git checkout | ||
# uses: actions/checkout@v1 | ||
# with: | ||
# submodules: true | ||
# - name: GCC release build | ||
# uses: ./.github/actions/build-cmake-preset | ||
# id: build | ||
# with: | ||
# preset-name: linux-release | ||
# do-package: ${{ inputs.do_package }} | ||
# retention-days: ${{ env.retention_days }} | ||