Moved from Gradle to bld

This commit is contained in:
Erik C. Thauvin 2023-11-11 21:26:13 -08:00
parent 886ed86479
commit f8cf0fd338
321 changed files with 12452 additions and 1492 deletions

View file

@ -1,21 +1,21 @@
name: gradle-ci
name: bld-ci
on: [ push, pull_request, workflow_dispatch ]
jobs:
build:
build-bld-project:
runs-on: ubuntu-latest
env:
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-XX:MaxMetaspaceSize=512m"
SONAR_JDK: "17"
COVERAGE_SDK: "17"
strategy:
matrix:
java-version: [ 11, 17, 20 ]
java-version: [ 17, 20 ]
steps:
- uses: actions/checkout@v3
- name: Checkout source repository
uses: actions/checkout@v3
with:
fetch-depth: 0
@ -25,27 +25,25 @@ jobs:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Grant bld execute permission
run: chmod +x bld
- name: Cache SonarCloud packages
if: matrix.java-version == env.SONAR_JDK
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Download the bld dependencies
run: ./bld download
- name: Test with Gradle
uses: gradle/gradle-build-action@v2
env:
BITLY_ACCESS_TOKEN: ${{ secrets.BITLY_ACCESS_TOKEN }}
with:
arguments: build check --stacktrace --scan
- name: Compile source with bld
run: ./bld compile
- name: SonarCloud
if: success() && matrix.java-version == env.SONAR_JDK
- name: Run tests with bld
run: ./bld jacoco
- name: Remove pom.xml
if: success() && matrix.java-version == env.COVERAGE_SDK
run: rm -rf pom.xml
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
if: success() && matrix.java-version == env.COVERAGE_SDK
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew sonar --info