-
Notifications
You must be signed in to change notification settings - Fork 5
56 lines (46 loc) · 1.23 KB
/
ci.yaml
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
50
51
52
53
54
55
56
name: CI
on: [pull_request]
jobs:
ci:
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
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '11'
- name: Build Docs
run: |
sudo apt-get install doxygen
./gradlew docs:build
# Build
- name: Build
uses: game-ci/unity-builder@v4
env:
UNITY_EMAIL: ${{ secrets.ULRICH_UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.ULRICH_UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.ULRICH_UNITY_SERIAL }}
with:
targetPlatform: ${{ matrix.targetPlatform }}
- uses: actions/upload-artifact@v3
with:
name: Build
path: build
- name: check directory
if: always()
run: |
ls /BlankProject/
ls -R build/
ls -R /opt/
- name: generate unity package
if: always()
run: |
./gradlew build
ls build/