-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci-staging: add new manual build workflows
- Loading branch information
1 parent
a39ed9a
commit 36ee32e
Showing
3 changed files
with
177 additions
and
118 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: 'Manual Linux Build' | ||
|
||
on: | ||
|
||
workflow_dispatch: | ||
inputs: | ||
|
||
preset-name: | ||
description: CMake preset | ||
required: true | ||
type: string | ||
default: ci | ||
|
||
docker-image: | ||
description: Docker image | ||
required: true | ||
type: string | ||
default: ghcr.io/mariusbgm/sil-kit-ci-ubuntu-18.04:main | ||
|
||
retention-days: | ||
description: Artifact retention in days (0 disables uploads) | ||
required: true | ||
type: number | ||
default: 0 | ||
|
||
c-compiler: | ||
description: Override the C compiler | ||
required: false | ||
type: string | ||
default: gcc-8 | ||
|
||
cxx-compiler: | ||
description: Override the C++ compiler | ||
required: false | ||
type: string | ||
default: g++-8 | ||
|
||
cmake-configure-args: | ||
description: Extra CMake configure arguments | ||
required: false | ||
type: string | ||
|
||
cmake-build-args: | ||
description: Extra CMake build arguments | ||
required: false | ||
type: string | ||
|
||
ctest-args: | ||
description: Extra CTest arguments | ||
required: false | ||
type: string | ||
default: -R "^I?Test" | ||
|
||
cmake-package-args: | ||
description: Extra CMake package arguments | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
|
||
run: | ||
name: Manual Linux Build (${{ inputs.preset-name }} on ${{ inputs.docker-image }}) | ||
|
||
environment: public-github-runners | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: checkout sil-kit workflows and actions | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: false | ||
sparse-checkout: .github | ||
|
||
- name: run ci build | ||
uses: ./.github/workflows/call-build.yml | ||
with: | ||
runs-on: ubuntu-22.04 | ||
preset-name: ${{ inputs.preset-name }} | ||
upload-artifacts: ${{ inputs.retention-days > 0 && true || false }} | ||
retention-days: ${{ inputs.retention-days }} | ||
package-name: SilKit-Linux-Manual | ||
linux-docker-image: ${{ inputs.docker-image }} | ||
c-compiler: ${{ inputs.c-compiler }} | ||
cxx-compiler: ${{ inputs.cxx-compiler }} | ||
cmake-configure-args: ${{ steps.extra.outputs.cmake-configure-args }} | ||
cmake-build-args: ${{ steps.extra.outputs.cmake-build-args }} | ||
ctest-args: ${{ steps.extra.outputs.ctest-args }} | ||
cmake-package-args: ${{ steps.extra.outputs.cmake-package-args }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
name: 'Manual Windows Build' | ||
|
||
on: | ||
|
||
workflow_dispatch: | ||
inputs: | ||
|
||
preset-name: | ||
description: CMake preset | ||
required: true | ||
type: string | ||
default: ci | ||
|
||
runs-on: | ||
description: Runner type | ||
required: true | ||
type: string | ||
default: windows-2019 | ||
|
||
retention-days: | ||
description: Artifact retention in days (0 disables uploads) | ||
required: true | ||
type: number | ||
default: 0 | ||
|
||
msvc-arch: | ||
description: Override the C compiler | ||
required: true | ||
type: string | ||
default: x64 | ||
|
||
msvc-toolset: | ||
description: Override the C++ compiler | ||
required: true | ||
type: string | ||
default: '14.1' | ||
|
||
cmake-configure-args: | ||
description: Extra CMake configure arguments | ||
required: false | ||
type: string | ||
|
||
cmake-build-args: | ||
description: Extra CMake build arguments | ||
required: false | ||
type: string | ||
|
||
ctest-args: | ||
description: Extra CTest arguments | ||
required: false | ||
type: string | ||
default: -R "^I?Test" | ||
|
||
cmake-package-args: | ||
description: Extra CMake package arguments | ||
required: false | ||
type: string | ||
|
||
jobs: | ||
|
||
run: | ||
name: Manual Linux Build (${{ inputs.preset-name }} on ${{ inputs.runs-on }}) | ||
|
||
environment: public-github-runners | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: checkout sil-kit workflows and actions | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: false | ||
sparse-checkout: .github | ||
|
||
- name: run ci build | ||
uses: ./.github/workflows/call-build.yml | ||
with: | ||
runs-on: ${{ inputs.runs-on }} | ||
preset-name: ${{ inputs.preset-name }} | ||
upload-artifacts: ${{ inputs.retention-days > 0 && true || false }} | ||
retention-days: ${{ inputs.retention-days }} | ||
package-name: SilKit-Windows-Manual | ||
msvc-arch: ${{ inputs.msvc-arch }} | ||
msvc-toolset: ${{ inputs.msvc-toolset }} | ||
cmake-configure-args: ${{ steps.extra.outputs.cmake-configure-args }} | ||
cmake-build-args: ${{ steps.extra.outputs.cmake-build-args }} | ||
ctest-args: ${{ steps.extra.outputs.ctest-args }} | ||
cmake-package-args: ${{ steps.extra.outputs.cmake-package-args }} |
This file was deleted.
Oops, something went wrong.