Skip to content

Commit

Permalink
Merge pull request #34 from vnobo/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
vnobo authored Dec 14, 2024
2 parents 6653399 + fd07ae3 commit 213048c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 19 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
41 changes: 29 additions & 12 deletions .github/workflows/gradle-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 213048c

Please sign in to comment.