-
Notifications
You must be signed in to change notification settings - Fork 61
48 lines (41 loc) · 1.27 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
name: Run Rive tests
on:
pull_request:
branches:
- main
push:
jobs:
run_tests:
name: Run Rive tests
runs-on: ghcr.io/cirruslabs/macos-runner:sonoma
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT_GITHUB }}
submodules: true
- name: Configure venv
run: |
python3 -m venv .venv
source .venv/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- 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-beta2/premake-5.0.0-beta2-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: Select Xcode 15.4
run: sudo xcodes select 15.4
- name: Build everything (using the cache, we should make an archive of course)
run: |
./scripts/build.sh ios_sim release
- name: Testing iOS app
run: ./scripts/test.sh