-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: parameters for build matrix workflow
- Loading branch information
Showing
2 changed files
with
84 additions
and
33 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 |
---|---|---|
|
@@ -3,31 +3,60 @@ | |
name: Builds | ||
on: | ||
workflow_call: | ||
inputs: | ||
targets: | ||
type: string | ||
description: Build targets | ||
default: all,fdctl | ||
machines: | ||
type: string | ||
description: Build architectures | ||
default: linux_gcc_x86_64,linux_clang_x86_64 | ||
gcc: | ||
type: string | ||
description: GCC compiler versions | ||
default: gcc-8.5.0,gcc-12.4.0 | ||
clang: | ||
type: string | ||
description: Clang compiler versions | ||
default: clang-17.0.6 | ||
workflow_dispatch: | ||
merge_group: | ||
inputs: | ||
targets: | ||
type: string | ||
description: Build targets (comma-separated) | ||
default: all,fdctl | ||
machines: | ||
type: string | ||
description: Build architectures (comma-separated) | ||
default: linux_gcc_x86_64,linux_clang_x86_64 | ||
gcc: | ||
type: string | ||
description: GCC compiler versions (comma-separated) | ||
default: gcc-8.5.0,gcc-12.4.0 | ||
clang: | ||
type: string | ||
description: Clang compiler versions (comma-separated) | ||
default: clang-17.0.6 | ||
concurrency: | ||
group: builds_${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
build: | ||
runs-on: X64 | ||
env: | ||
machines: linux_gcc_x86_64 | ||
gcc: gcc-8.5.0 | ||
targets: all | ||
runs-on: 512G | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: ./.github/actions/deps | ||
|
||
- uses: dtolnay/[email protected] | ||
|
||
- uses: ./.github/actions/deps | ||
|
||
- name: Start build | ||
run: | | ||
contrib/build.sh \ | ||
--no-deps --no-clang \ | ||
--targets $targets \ | ||
--gcc-versions $gcc \ | ||
--machines $machines | ||
contrib/build.sh --no-deps --no-rust \ | ||
--targets ${{ inputs.targets }} \ | ||
--machines ${{ inputs.machines }} \ | ||
--gcc-versions ${{ inputs.gcc || 'none --no-gcc' }} \ | ||
--clang-versions ${{ inputs.clang || 'none --no-clang' }} |
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