Skip to content

Commit

Permalink
Fixed graalvm-oci github workflow (#712)
Browse files Browse the repository at this point in the history
* Fixed graalvm-oci workflow

* Fixed graalvm-oci workflow
  • Loading branch information
msupic authored Sep 20, 2023
1 parent b7ac199 commit c8428b1
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/graalvm-oci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
runs-on: ${{ needs.start-runner.outputs.label }}
strategy:
matrix:
graalvm: [ 'latest' ]
java: [ '17' ]
steps:
- uses: AutoModality/action-clean@1.1.0
Expand All @@ -52,23 +51,26 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup GraalVM CE
uses: graalvm/setup-graalvm@v1
- name: "Set up JAVA_HOME for Gradle"
uses: actions/setup-java@v3.12.0
with:
version: ${{ matrix.graalvm }}
distribution: 'oracle'
java-version: '17'
- name: "Set up GRAALVM_HOME for Native Build Tools"
uses: graalvm/setup-graalvm@v1.1.3.1
with:
distribution: 'graalvm-community'
java-version: ${{ matrix.java }}
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
set-java-home: 'false'
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Build with Gradle
id: gradle
run: |
if ./gradlew tasks --no-daemon --all | grep -w "testNativeImage"
if ./gradlew tasks --no-daemon --all | grep -w "nativeTest"
then
./gradlew check testNativeImage --continue --no-daemon
else
./gradlew check --continue --no-daemon
./gradlew nativeTest --continue --no-daemon
fi
env:
MICRONAUT_ENV_DEDUCTION: false
Expand Down Expand Up @@ -104,7 +106,7 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '❌ ${{ github.workflow }} ${{ matrix.java }} ${{ matrix.graalvm }} failed: ${{ steps.gradle.outputs.build-scan-url }}'
body: '❌ ${{ github.workflow }} ${{ matrix.java }} latest failed: ${{ steps.gradle.outputs.build-scan-url }}'
})
- name: Publish Test Report
if: always()
Expand Down

0 comments on commit c8428b1

Please sign in to comment.