Skip to content

Commit

Permalink
Update CI workflow to build each target.
Browse files Browse the repository at this point in the history
  • Loading branch information
christiandeange committed Mar 22, 2024
1 parent 2a1ea03 commit 8558d1a
Showing 1 changed file with 66 additions and 9 deletions.
75 changes: 66 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:

test:
check-bluesky:
runs-on: ubuntu-latest
timeout-minutes: 15

Expand All @@ -22,22 +22,79 @@ jobs:
java-version: '17'
check-latest: true

- name: Assemble & Test
run: ./gradlew clean assemble test check --no-daemon --stacktrace
- name: Check Bluesky
run: ./gradlew clean :bluesky:check --no-daemon --stacktrace

- name: Upload Test Results
uses: actions/upload-artifact@v2
if: ${{ failure() }}
assemble-android:
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
name: test-results
path: ./**/build/reports/tests/
distribution: 'temurin'
java-version: '17'
check-latest: true

- name: Assemble Android
run: ./gradlew clean :app:android:assemble --no-daemon --stacktrace

assemble-ios:
runs-on: macos-latest
timeout-minutes: 15

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
check-latest: true

- name: Assemble iOS
run: ./gradlew clean :app:ios:iosSimulatorArm64MainKlibrary --no-daemon --stacktrace

assemble-js:
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
check-latest: true

- name: Assemble JS
run: ./gradlew clean :app:web:assemble --no-daemon --stacktrace

assemble-jvm:
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
check-latest: true

- name: Assemble JVM
run: ./gradlew clean :app:desktop:assemble --no-daemon --stacktrace

publish-snapshot:
runs-on: ubuntu-latest
if: github.repository == 'christiandeange/ozone' && github.ref == 'refs/heads/main'
timeout-minutes: 15
needs:
- test
- check-bluesky
- assemble-android
- assemble-ios
- assemble-js
- assemble-jvm

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 8558d1a

Please sign in to comment.