diff options
Diffstat (limited to 'contrib/SDL-3.2.8/.github/workflows/build.yml')
| -rw-r--r-- | contrib/SDL-3.2.8/.github/workflows/build.yml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/contrib/SDL-3.2.8/.github/workflows/build.yml b/contrib/SDL-3.2.8/.github/workflows/build.yml new file mode 100644 index 0000000..09652e0 --- /dev/null +++ b/contrib/SDL-3.2.8/.github/workflows/build.yml | |||
| @@ -0,0 +1,48 @@ | |||
| 1 | name: 'Build (All)' | ||
| 2 | |||
| 3 | on: [push, pull_request] | ||
| 4 | |||
| 5 | concurrency: | ||
| 6 | group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | ||
| 7 | cancel-in-progress: true | ||
| 8 | |||
| 9 | jobs: | ||
| 10 | controller: | ||
| 11 | name: 'Create test plan' | ||
| 12 | runs-on: 'ubuntu-latest' | ||
| 13 | outputs: | ||
| 14 | platforms-level1: ${{ steps.plan.outputs.platforms-level1 }} | ||
| 15 | platforms-others: ${{ steps.plan.outputs.platforms-others }} | ||
| 16 | steps: | ||
| 17 | - uses: actions/setup-python@main | ||
| 18 | with: | ||
| 19 | python-version: 3.x | ||
| 20 | - uses: actions/checkout@main | ||
| 21 | with: | ||
| 22 | sparse-checkout: '.github/workflows/create-test-plan.py' | ||
| 23 | - name: 'Create plan' | ||
| 24 | id: plan | ||
| 25 | run: | | ||
| 26 | # Adding [sdl-ci-filter GLOB] to the commit message will limit the jobs | ||
| 27 | # e.g. [sdl-ci-filter msvc-*] | ||
| 28 | EOF=$(openssl rand -hex 32) | ||
| 29 | cat >/tmp/commit_message.txt <<$EOF | ||
| 30 | ${{ github.event.head_commit.message }} | ||
| 31 | $EOF | ||
| 32 | |||
| 33 | python .github/workflows/create-test-plan.py \ | ||
| 34 | --github-variable-prefix platforms \ | ||
| 35 | --github-ci \ | ||
| 36 | --verbose \ | ||
| 37 | ${{ (github.repository_owner != 'libsdl-org' && '--no-artifact') || '' }} \ | ||
| 38 | --commit-message-file /tmp/commit_message.txt | ||
| 39 | level1: | ||
| 40 | needs: [controller] | ||
| 41 | uses: './.github/workflows/generic.yml' | ||
| 42 | with: | ||
| 43 | platforms: ${{ needs.controller.outputs.platforms-level1 }} | ||
| 44 | level2: | ||
| 45 | needs: [controller, level1] | ||
| 46 | uses: './.github/workflows/generic.yml' | ||
| 47 | with: | ||
| 48 | platforms: ${{ needs.controller.outputs.platforms-others }} | ||
