-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5041f74
commit 501c8a5
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
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: 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 | ||
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 |