Skip to content

Commit

Permalink
Make sure it runs on Windows (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
alisen authored Jul 5, 2024
2 parents c1810d2 + 6443c7b commit 4c7302d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,23 @@ jobs:
with:
name: Debug APK
path: zeapp/android/build/outputs/apk/debug/android-debug.apk

build-debug-windows:
runs-on: windows-latest
steps:
- name: "Checkout Repo"
uses: actions/checkout@v4
- name: "Setup Java 17"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: "Validate Gradle wrapper"
uses: gradle/actions/wrapper-validation@v3
- name: "Assemble Debug"
run: ./gradlew :android:assembleDebug --no-daemon
# Not uploading the APK cause the other step will generate the same thing anyway
ktlint:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion zeapp/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ android {
}

sourceSets.getByName("main").assets.srcDir(
"${layout.buildDirectory}/generated/assets",
"${layout.buildDirectory.get()}/generated/assets",
)

compileOptions {
Expand Down

0 comments on commit 4c7302d

Please sign in to comment.