-
Notifications
You must be signed in to change notification settings - Fork 30
102 lines (96 loc) · 2.83 KB
/
pull-request.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Renderer
on:
push:
branches:
- main
- develop
pull_request:
jobs:
androidBuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.0
- name: set up JDK
uses: actions/setup-java@v4
with:
distribution: "adopt"
java-version: 17
- name: assemble ViroCore
run: |
./gradlew :viroreact:assembleDebug
./gradlew :code-samples:ARPlacingObjects:assembleDebug
./gradlew :code-samples:ARRetail:assembleDebug
./gradlew :code-samples:ARTesla:assembleDebug
./gradlew :code-samples:ARHelloWorldAndroid:assembleDebug
./gradlew :code-samples:ARBlackPanther:assembleDebug
working-directory: ./android
- name: Upload result ViroCore
uses: actions/upload-artifact@v4.4.0
with:
name: viroCore
path: |
./android/virocore/build/outputs/aar/*.aar
./android/viroreact/build/outputs/aar/*.aar
./android/viroar/build/outputs/aar/*.aar
AndroidCheck:
name: Check
runs-on: ubuntu-latest
defaults:
run:
working-directory: android
steps:
- name: Checkout
uses: actions/checkout@v4.2.0
with:
fetch-depth: 0
- name: Install JDK
uses: actions/setup-java@v4
with:
distribution: "adopt"
java-version: 17
- uses: gradle/wrapper-validation-action@v3
- name: Code checks
run: ./gradlew :viroreact:check
- name: Archive Lint report
uses: actions/upload-artifact@v4.4.0
if: ${{ always() }}
with:
name: Viro-Lint-report
path: |
./**/build/reports/lint-results.html
./**/**/build/reports/lint-results.html
iosBuild:
runs-on: ${{ matrix.macOS }}
strategy:
fail-fast: false
matrix:
macOS: [ "macos-13" ]
xcode: [ "15.2.0" ]
steps:
- name: Investigate available XCode versions
run: ls -n /Applications/ | grep Xcode*
- uses: actions/checkout@v4.2.0
- name: Install gpg
run: brew install gnupg
- uses: maxim-lobanov/setup-xcode@v1.6.0
with:
xcode-version: ${{ matrix.xcode }}
- name: Install pod dependencies
run: |
cd ios
pod install --verbose
shell: bash
- name: Xcodebuild iOS Renderer (non-static)
run: |
cd ios
set -o pipefail && xcodebuild \
-workspace ViroRenderer.xcworkspace \
-scheme ViroKit \
-sdk iphoneos \
-configuration Release \
IPHONEOS_DEPLOYMENT_TARGET=13.0 | xcpretty
- name: Upload iOS Renderer artifact
uses: actions/upload-artifact@v4.4.0
with:
name: ios_dist.tgz
path: ./ios/dist/