-
-
Notifications
You must be signed in to change notification settings - Fork 85
46 lines (46 loc) · 1.36 KB
/
unity.yml
File metadata and controls
46 lines (46 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Unity
on:
schedule:
- cron: '0 0 * * 0' # Every Sunday at midnight
push:
branches: [main]
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
branches: ['**']
workflow_dispatch: # manual workflow trigger
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{(github.event_name == 'pull_request' || github.event.action == 'synchronize')}}
jobs:
setup:
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
with:
sparse-checkout: .github/
- uses: RageAgainstThePixel/job-builder@v1
id: setup-jobs
with:
build-options: ./.github/workflows/build-options.json
group-by: unity-version
job-name-prefix: Build
outputs:
jobs: ${{ steps.setup-jobs.outputs.jobs }}
validate:
if: ${{ needs.setup.outputs.jobs }}
needs: setup
name: ${{ matrix.jobs.name }}
permissions:
contents: read
actions: write
strategy:
matrix: ${{ fromJSON(needs.setup.outputs.jobs) }}
fail-fast: false
max-parallel: 1
secrets: inherit
uses: RageAgainstThePixel/workflows/.github/workflows/build-unity-package.yml@main
with:
matrix: ${{ toJSON(matrix.jobs.matrix) }}