diff --git a/.github/workflows/fedora-copr-build.yml b/.github/workflows/fedora-copr-build.yml index a768089c..b8918c7e 100644 --- a/.github/workflows/fedora-copr-build.yml +++ b/.github/workflows/fedora-copr-build.yml @@ -6,26 +6,61 @@ on: # See https://docs.github.com/en/actions/reference/events-that-trigger-workflows#schedule - cron: "45 0 * * *" - workflow_dispatch: {} + workflow_dispatch: + inputs: + strategy: + description: 'build strategy' + required: true + type: choice + options: + - big-merge + - pgo jobs: + generate-matrix: + runs-on: ubuntu-latest + outputs: + mymatrix: ${{ steps.set-matrix.outputs.myoutput }} + steps: + - id: set-matrix + run: | + BIG_MERGE_CONFIG=$(jq -c <> $GITHUB_OUTPUT + build-on-copr: + needs: generate-matrix strategy: fail-fast: false - matrix: - name: [big-merge, pgo] - include: - - name: big-merge - copr_project_tpl: "@fedora-llvm-team/llvm-snapshots-big-merge-YYYYMMDD" - copr_target_project: "@fedora-llvm-team/llvm-snapshots" - clone_url_tpl: "https://src.fedoraproject.org/rpms/PKG.git" - clone_ref: rawhide - - name: pgo - copr_project_tpl: "@fedora-llvm-team/llvm-snapshots-pgo-YYYYMMDD" - copr_target_project: "@fedora-llvm-team/llvm-snapshots-pgo" - extra_script_file: "scripts/functions-pgo.sh" - clone_url_tpl: "https://src.fedoraproject.org/forks/kkleine/rpms/PKG.git" - clone_ref: pgo + matrix: ${{fromJson(needs.generate-matrix.outputs.mymatrix)}} runs-on: ubuntu-latest container: fedora:39 steps: