Build XDP Matrix #29
This file contains hidden or 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: Build XDP Matrix | |
| # The caller is responsible for making sure all options passed to this workflow are valid and compatible with each other. | |
| on: | |
| workflow_call: | |
| inputs: | |
| ref: | |
| required: false | |
| default: '' | |
| type: string | |
| id: | |
| required: false | |
| default: '' | |
| type: string | |
| codeql: | |
| required: false | |
| default: true | |
| type: boolean | |
| workflow_dispatch: | |
| inputs: | |
| ref: | |
| required: false | |
| default: '' | |
| type: string | |
| description: 'The git commit hash (or HEAD of current branch if left empty) of XDP to build.' | |
| id: | |
| required: false | |
| default: '' | |
| type: string | |
| description: 'With multiple builds with duplicate configurations (e.g. Debug_x64_2022), you can append an ID (e.g. Debug_x64_2022_myid).' | |
| jobs: | |
| build_matrix: | |
| name: Build ${{ inputs.ref }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [2022] | |
| config: [Release, Debug] | |
| platform: [x64, arm64] | |
| uses: ./.github/workflows/build.yml | |
| with: | |
| config: ${{ matrix.config }} | |
| os: ${{ matrix.os }} | |
| platform: ${{ matrix.platform }} | |
| ref: ${{ inputs.ref }} | |
| codeql: ${{ (inputs.codeql || false) && github.event_name == 'schedule' }} | |
| artifact_path: ${{ matrix.os == 2022 && format('bin_{0}_{1}{2}', matrix.config, matrix.platform, (inputs.id != '' && format('_{0}', inputs.id) || '')) || '' }} |