|
4 | 4 | schedule: |
5 | 5 | - cron: "0 0 * * *" |
6 | 6 | workflow_dispatch: |
| 7 | + inputs: |
| 8 | + branch: |
| 9 | + description: 'Branch to build (leave empty to use the branch this workflow runs from)' |
| 10 | + required: false |
| 11 | + default: '' |
7 | 12 |
|
8 | 13 | permissions: |
9 | 14 | contents: read |
|
18 | 23 | fail-fast: false |
19 | 24 | matrix: |
20 | 25 | os: [ubuntu-22.04, ubuntu-24.04-arm] |
21 | | - branch: |
22 | | - - { code: master, label: gitmaster } |
23 | 26 | include: |
24 | 27 | - os: ubuntu-22.04 |
25 | 28 | compiler: { compiler: GNU12, CC: gcc-12, CXX: g++-12, packages: gcc-12 g++-12 } |
|
34 | 37 | CMAKE_BUILD_TYPE: ${{ matrix.btype }} |
35 | 38 | GENERATOR: ${{ matrix.generator }} |
36 | 39 | TARGET: ${{ matrix.target }} |
37 | | - BRANCH: ${{ matrix.branch.code }} |
38 | | - BUILD_NAME: ${{ matrix.branch.label }} |
| 40 | + BRANCH: ${{ inputs.branch || github.ref_name }} |
| 41 | + BUILD_NAME: ${{ inputs.branch || github.ref_name }} |
39 | 42 | steps: |
40 | 43 | - name: Install compiler ${{ matrix.compiler.compiler }} |
41 | 44 | run: | |
@@ -159,7 +162,7 @@ jobs: |
159 | 162 | run: | |
160 | 163 | # Note that we can't make a shallow clone to reduce clone traffic and time, as we have to |
161 | 164 | # fetch the entire history to correctly generate the version for the AppImage filename |
162 | | - git clone -b ${{ github.ref_name }} https://github.com/${{ github.repository }} src |
| 165 | + git clone -b ${{ inputs.branch || github.ref_name }} https://github.com/${{ github.repository }} src |
163 | 166 | pushd src |
164 | 167 | git submodule init |
165 | 168 | git config submodule.src/tests/integration.update none |
@@ -293,7 +296,7 @@ jobs: |
293 | 296 | run: | |
294 | 297 | # Note that we can't make a shallow clone to reduce clone traffic and time, as we have to |
295 | 298 | # fetch the entire history to correctly generate the version for the installation package filename |
296 | | - git clone -b ${{ github.ref_name }} https://github.com/${{ github.repository }} src |
| 299 | + git clone -b ${{ inputs.branch || github.ref_name }} https://github.com/${{ github.repository }} src |
297 | 300 | pushd src |
298 | 301 | git submodule init |
299 | 302 | git config submodule.src/tests/integration.update none |
@@ -368,7 +371,7 @@ jobs: |
368 | 371 | run: | |
369 | 372 | # Note that we can't make a shallow clone to reduce clone traffic and time, as we have to |
370 | 373 | # fetch the entire history to correctly generate the version for the disk image filename |
371 | | - git clone -b ${{ github.ref_name }} https://github.com/${{ github.repository }} src |
| 374 | + git clone -b ${{ inputs.branch || github.ref_name }} https://github.com/${{ github.repository }} src |
372 | 375 | pushd src |
373 | 376 | git submodule init |
374 | 377 | git config submodule.src/tests/integration.update none |
|
0 commit comments