Skip to content

Add CI config for PRs #1

Add CI config for PRs

Add CI config for PRs #1

Workflow file for this run

name: Build all apps
on:
push: # TODO remove before merge
branches:
- marton/pr-ci-checks
pull_request:
jobs:
build-jvm:
name: Build desktop
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- name: Assemble desktop jar
run: ./gradlew :shared:jvmJar
build-android:
name: Build Android
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- name: Android debug build
run: ./gradlew :androidApp:assembleDebug --stacktrace
build-ios:
name: Build
runs-on: macOS-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- name: Set Xcode version
run: sudo xcode-select -s /Applications/Xcode_15.3.app/Contents/Developer
- name: iOS debug build
run: cd iosApp && xcodebuild -scheme "[Fleet] Xcode-app configuration" -configuration Debug -destination 'platform=iOS Simulator,OS=latest,name=iPhone 15' CODE_SIGNING_ALLOWED='NO'
build-web:
name: Build web
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- name: Assemble web app
run: ./gradlew buildWebApp