Skip to content

Commit

Permalink
tilt ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Feb 11, 2024
1 parent 5041f74 commit f02c1e4
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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"
make tilt-ci && exit 0 || sleep 60
done
exit 1
- name: Make sure local backend is setup in dev mode
run: nix develop -c tilt wait --timeout 1h --for=condition=Ready uiresources init-setup
- name: Destroy backend
if: always()
continue-on-error: true
run: nnix 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
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ tilt-up:

tilt-down:
cd dev && GALOY_QUICKSTART_PATH="dev/vendor/galoy-quickstart" tilt down

tilt-ci:
cd dev && GALOY_QUICKSTART_PATH="dev/vendor/galoy-quickstart" tilt ci

0 comments on commit f02c1e4

Please sign in to comment.