-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (47 loc) · 1.7 KB
/
build-test.yml
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
47
48
49
name: Checks
on: [push, pull_request]
jobs:
pr-branch-check-name:
name: "Check PR for semantic branch name"
if: ${{ github.event.pull_request }}
uses: mParticle/mparticle-workflows/.github/workflows/pr-branch-check-name.yml@stable
pr-title-check:
name: "Check PR for semantic title"
if: ${{ github.event.pull_request }}
uses: mParticle/mparticle-workflows/.github/workflows/pr-title-check.yml@stable
pr-branch-target-gitflow:
name: "Check PR for semantic target branch"
if: ${{ github.event.pull_request }}
uses: mParticle/mparticle-workflows/.github/workflows/pr-branch-target-continuous.yml@stable
buildForAllSupportedPlatforms:
name: Build for ${{ matrix.targetPlatform }}
needs: [pr-branch-check-name, pr-title-check, pr-branch-target-gitflow]
if: always() && !failure()
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
targetPlatform:
- iOS # Build an iOS player.
- Android # Build an Android .apk standalone app.
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
lfs: true
- uses: actions/cache@v2
with:
path: Library
key: Library-${{ matrix.targetPlatform }}
restore-keys: Library-
- uses: game-ci/unity-builder@v2
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
# - uses: actions/upload-artifact@v2
# with:
# name: Build-${{ matrix.targetPlatform }}
# path: build/${{ matrix.targetPlatform }}