Skip to content

Commit

Permalink
Fix windows builds and release
Browse files Browse the repository at this point in the history
  • Loading branch information
machaval committed Feb 24, 2021
1 parent ad1ac52 commit 6f6b76f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,32 @@ jobs:
java-version: 11

# Runs a single command using the runners shell
- name: Run native image
run: ./gradlew build
- name: Run Build on native
run: |
if [ "$RUNNER_OS" == 'Windows' ]; then
./gradlew native-cli:build -PgraalvmVersion=20.2.0
else
./gradlew native-cli:build
fi
shell: bash
env:
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_KEY: ${{secrets.AWS_SECRET_KEY}}

# Runs a set of commands using the runners shell
- name: Create Native Image
run: |
./gradlew native-cli:nativeImage
./gradlew native-cli:distro
if [ "$RUNNER_OS" == 'Windows' ]; then
./gradlew native-cli:nativeImage -PgraalvmVersion=20.2.0
./gradlew native-cli:distro
else
./gradlew native-cli:nativeImage
./gradlew native-cli:distro
fi
shell: bash
env:
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_KEY: ${{secrets.AWS_SECRET_KEY}}

# Upload the artifact file
- name: Upload binaries to release
Expand Down
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}
}
dependencies {
classpath "com.palantir.graal:gradle-graal:0.7.1"
classpath "com.palantir.graal:gradle-graal:0.7.2"
}
}

Expand All @@ -24,14 +24,14 @@ subprojects {
version nativeVersion

compileScala {
// targetCompatibility = "11"
// sourceCompatibility = "11"
targetCompatibility = "11"
sourceCompatibility = "11"
}


compileJava {
// sourceCompatibility = '11'
// targetCompatibility = '11'
sourceCompatibility = '11'
targetCompatibility = '11'
}


Expand Down

0 comments on commit 6f6b76f

Please sign in to comment.