-
Notifications
You must be signed in to change notification settings - Fork 137
47 lines (42 loc) · 1.45 KB
/
ci.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
name: tilt-ci
on: [push]
jobs:
tilt-ci-android:
name: Tilt CI Android
runs-on: ["self-hosted", "Linux", "X64"]
steps:
- uses: actions/checkout@v2
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: Tilt CI
run: |
for i in {1..5}; do
echo "Tilt CI attempt $i"
nix develop -c make tilt-ci && exit 0 || sleep 60
done
exit 1
- name: Make sure init-setup has run (testing depends on it)
run: nix develop -c tilt wait --timeout 1h --for=condition=Ready uiresources init-setup
- name: Destroy backend
if: always()
continue-on-error: true
run: nix develop -c make tilt-down
# tilt-ci-ios:
# name: Tilt CI MacOS
# runs-on: ["self-hosted", "MacOS", "ARM64"]
# steps:
# - uses: actions/checkout@v2
# - uses: DeterminateSystems/magic-nix-cache-action@v2
# - name: Run local backend in background
# run: |
# nix develop -c echo "nix flake built"
# nix develop -c make tilt-up &
# echo $? > dev/.tilt-pid.tmp.ci
# sleep 5
# - name: Wait for backend to be ready
# run: nix develop -c tilt wait --timeout 1h --for=condition=Ready uiresources init-setup
# - name: Destroy backend
# if: always()
# continue-on-error: true
# run: |
# kill $(cat dev/.tilt-pid.tmp.ci) || true
# nix develop -c make tilt-down