diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index d11e0fe..f5b61fc 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -20,20 +20,19 @@ jobs: permissions: contents: read packages: write + env: + SEGMENT_DOWNLOAD_TIMEOUT_MINS: '5' steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up JDK 21 for x64 - uses: actions/setup-java@v4 + - name: Set up graalvm 21 for x64 + uses: graalvm/setup-graalvm@v1 with: version: 'latest' java-version: '21' distribution: 'liberica' - architecture: x64 - settings-path: ${{ github.workspace }} - - - name: Setup Gradle - uses: gradle/actions/setup-gradle@v4 + native-image-job-reports: 'true' + cache: 'gradle' - name: Execute Gradle platform bootBuildImage run: | chmod +x ./gradlew diff --git a/.github/workflows/gradle-tests.yml b/.github/workflows/gradle-tests.yml index b587334..7843804 100644 --- a/.github/workflows/gradle-tests.yml +++ b/.github/workflows/gradle-tests.yml @@ -10,26 +10,43 @@ run-name: ${{ github.actor }} is Build Test Actions on: push: branches: [ "main","dev" ] - pull_request: - branches: [ "main" ] jobs: - java-build-test: + boot-build-test: runs-on: ubuntu-latest permissions: contents: read - + env: + SEGMENT_DOWNLOAD_TIMEOUT_MINS: '5' steps: - - uses: actions/checkout@v4 - - - name: Set up JDK 21 + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up JDK 21 for x64 uses: actions/setup-java@v4 with: + version: 'latest' java-version: '21' distribution: 'liberica' - - - name: Make gradlew executable - run: chmod +x ./gradlew - + check-latest: true + cache: 'gradle' - name: Build with Gradle Wrapper - run: ./gradlew build test + run: | + chmod +x ./gradlew + ./gradlew test + dependency-submission: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up JDK 21 for x64 + uses: actions/setup-java@v4 + with: + version: 'latest' + java-version: '21' + distribution: 'liberica' + check-latest: true + cache: 'gradle' + - name: Generate and submit dependency graph + uses: gradle/actions/dependency-submission@v4 \ No newline at end of file