Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #34

Merged
merged 9 commits into from
Dec 14, 2024
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
Loading