Skip to content

Commit

Permalink
Merge pull request #2 from buildrun-tech/feature/updates-readme
Browse files Browse the repository at this point in the history
cd: fix the step of graalvm
  • Loading branch information
brunograna authored Feb 18, 2024
2 parents 393e01a + 2eaacd8 commit 5345aaf
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,27 @@ jobs:
- name: Test with Maven
run: mvn test --file app/pom.xml

create-binary:
generate-release:
needs: [re-test, re-build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up GraalVM Java 21
uses: actions/setup-java@v2
- uses: graalvm/setup-graalvm@v1
with:
java-version: '21'
distribution: 'graalvm'
cache: 'gradle'
distribution: 'graalvm' # See 'Options' for all available distributions
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Debug step
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
native-image --version
- name: Compile to native image
run: ./mvnw -Pnative native:compile
run: ./app/mvnw -Pnative native:compile

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 5345aaf

Please sign in to comment.