Skip to content

Commit

Permalink
Merge pull request #136 from gertrude-app/ios-ci
Browse files Browse the repository at this point in the history
monorepo: ci for ios
  • Loading branch information
jaredh159 authored Jan 3, 2025
2 parents 91e48eb + 14a2ca4 commit 2268f3d
Showing 1 changed file with 37 additions and 5 deletions.
42 changes: 37 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,20 +160,30 @@ jobs:
files-changed:
runs-on: namespace-profile-default
outputs:
macapplib: ${{ steps.changes.outputs.macapplib }}
macapp: ${{ steps.changes.outputs.macapp }}
iosapp: ${{ steps.changes.outputs.iosapp }}
steps:
- name: checkout
uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
macapplib:
macapp:
- macapp/App/**
- pairql-macapp/**
- gertie/**
- x-kit/**
- ts-interop/**
iosapp:
- iosapp/lib-ios/**
- pairql-iosapp/**
- gertie/**
- x-kit/**
macapp-lib:
needs: files-changed
if: needs.files-changed.outputs.macapplib == 'true'
if: needs.files-changed.outputs.macapp == 'true'
runs-on: macos-14
steps:
- name: checkout
Expand All @@ -185,13 +195,34 @@ jobs:
- uses: actions/cache@v4
with:
path: macapp/App/.build
key: macapp-spm--${{ hashFiles('macapp/App/Package.resolved') }}
restore-keys: macapp-spm--
key: macapp-xc15.3.0--${{ hashFiles('macapp/App/Package.resolved') }}
restore-keys: macapp-xc15.3.0--
- name: build
run: cd macapp/App && swift build
- name: test
run: cd macapp/App && swift test

iosapp-lib:
needs: files-changed
if: needs.files-changed.outputs.iosapp == 'true'
runs-on: macos-14
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.3.0
- uses: actions/cache@v4
with:
path: iosapp/lib-ios/.build
key: iosapp-xc15.3.0--${{ hashFiles('iosapp/lib-ios/Package.resolved') }}
restore-keys: iosapp-xc15.3.0--
- name: build
run: cd iosapp/lib-ios && swift build
- name: test
run: cd iosapp/lib-ios && swift test

# env

env:
Expand All @@ -217,3 +248,4 @@ env:
STRIPE_SUBSCRIPTION_PRICE_ID: not-real
STRIPE_SECRET_KEY: not-real
SWIFT_DETERMINISTIC_HASHING: 1
TASK_MEGA_YIELD_COUNT: 50

0 comments on commit 2268f3d

Please sign in to comment.