Skip to content

Commit

Permalink
Fruitties workflow (#40)
Browse files Browse the repository at this point in the history
* Added initial files

Added podfile and workflow file

* Update Fruitties.yaml

Build on feature

* Update Fruitties.yaml

Set correct name
  • Loading branch information
clivejefferies authored Oct 23, 2024
1 parent b1e0e10 commit 462a303
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/workflows/Fruitties.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Build Fruitties sample

on:
push:
branches:
- main
- feature/*
pull_request:

concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true

jobs:
build_android:
name: Build Android app
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- name: Build app
working-directory: ./Fruitties
run: ./gradlew assemble --stacktrace

build_ios:
name: Build iOS app
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- name: Initialize pods
working-directory: ./Fruitties
run: |
cd iosApp
pod install --verbose
- name: Build app
working-directory: ./Fruitties
run: xcodebuild -workspace iosApp/iosApp.xcworkspace -configuration Debug -scheme iosApp -sdk iphonesimulator
3 changes: 3 additions & 0 deletions Fruitties/iosApp/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
target 'iosApp' do
platform :ios, '14.1'
end

0 comments on commit 462a303

Please sign in to comment.