Skip to content

Commit

Permalink
Add CI checks for pull requests (#147)
Browse files Browse the repository at this point in the history
* Add CI config for PRs

* Attempt to fix iOS build

* Remove test branch condition
  • Loading branch information
zsmb13 authored Oct 17, 2024
1 parent f7a148e commit 15eda45
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/build-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Build all apps
on:
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 iOS
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 -target "iosApp" -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: Build web app
run: ./gradlew buildWebApp

build-backend:
name: Build backend
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: Build backend jar
run: ./gradlew :backend:jar
File renamed without changes.

0 comments on commit 15eda45

Please sign in to comment.