-
Notifications
You must be signed in to change notification settings - Fork 61
100 lines (87 loc) · 2.93 KB
/
tests.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
name: Run Rive tests
on:
pull_request:
branches:
- main
push:
jobs:
build-skia:
strategy:
matrix:
arch: ["x86", "x64", "arm", "arm64", "iossim_arm64"]
runs-on: [self-hosted, macOS, ARM64]
permissions:
id-token: write
contents: read
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: us-west-2
role-to-assume: ${{ secrets.ACTIONS_ROLE }}
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: true
token: ${{ secrets.PAT_GITHUB }}
- name: Update Java
uses: actions/setup-java@v2
with:
distribution: "zulu"
java-version: "16"
- name: Installing pre-requisites
run: |
set -x
# Install some dependencies & premake5
brew install ninja
curl https://github.com/premake/premake-core/releases/download/v5.0.0-beta1/premake-5.0.0-beta1-macosx.tar.gz -L -o premake_macosx.tar.gz
tar -xvf premake_macosx.tar.gz 2>/dev/null
rm premake_macosx.tar.gz
mkdir bin
cp premake5 bin/premake5
sudo chmod a+x premake5
sudo mv premake5 /usr/local/bin
- name: Build skia files
run: ./scripts/build.skia.sh -a ${{ matrix.arch }}
run_tests:
name: Run Rive tests
needs: build-skia
runs-on: [self-hosted, macOS, ARM64]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT_GITHUB }}
submodules: true
- name: Installing pre-requisites
run: |
set -x
# Install some dependencies & premake5
brew install ninja
curl https://github.com/premake/premake-core/releases/download/v5.0.0-beta1/premake-5.0.0-beta1-macosx.tar.gz -L -o premake_macosx.tar.gz
tar -xvf premake_macosx.tar.gz 2>/dev/null
rm premake_macosx.tar.gz
sudo chmod a+x premake5
mkdir bin
cp premake5 bin/premake5
sudo mv premake5 /usr/local/bin
pip3 install ply
- name: Build everything WITHOUT Rive Renderer
run: ./scripts/build.sh ios_sim debug
- name: Testing iOS app WITHOUT Rive Renderer
run: ./scripts/test.sh
- name: Get Renderer ref
id: renderer-ref
run: echo "REF_VALUE=$(cat .rive_renderer)" >> $GITHUB_OUTPUT
- name: Checkout Rive Renderer Repo
uses: actions/checkout@v3
with:
submodules: true
repository: ${{ secrets.RIVE_RENDERER_REPO }}
token: ${{ secrets.PAT_GITHUB }}
path: ./submodules/pls
ref: ${{ steps.renderer-ref.outputs.REF_VALUE }}
- name: Build everything (using the cache, we should make an archive of course)
run: ./scripts/build.sh ios_sim debug
- name: Testing iOS app
run: ./scripts/test.sh