Skip to content

Commit

Permalink
ci: Build and upload example app
Browse files Browse the repository at this point in the history
  • Loading branch information
YuKongA committed Aug 20, 2024
1 parent ce5e421 commit 5d7eef3
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,37 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run the Test
run: ./gradlew ${{ matrix.target }}
run: ./gradlew ${{ matrix.target }}

simple:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Build with Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build example apps
run: |
./gradlew :composeApp:createReleaseDistributable
./gradlew :composeApp:assembleRelease
- name: Upload android artifacts
uses: actions/upload-artifact@v4
with:
name: AndroidExampleApp
path: composeApp/build/outputs/apk/release
- name: Upload windows artifacts
uses: actions/upload-artifact@v4
with:
name: WindowsExampleApp
path: composeApp/build/compose/binaries/main-release/app

0 comments on commit 5d7eef3

Please sign in to comment.