From 5826a7797c7130b2d8b40e4135a27abcfb64b1e2 Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Fri, 16 Feb 2024 11:19:48 +0100 Subject: [PATCH] Update workflow --- .github/workflows/build.yaml | 33 +++++++++++++++------------------ .yamllint.yaml | 7 +++++++ README.md | 2 +- 3 files changed, 23 insertions(+), 19 deletions(-) create mode 100644 .yamllint.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 94209f5..28bc6d5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,45 +1,42 @@ --- name: Build -on: +on: # yamllint disable-line rule:truthy push: - branches: [main, master] + branches: [master] tags: - "release-*.*.*" pull_request: - branches: [main, master] + branches: [master] jobs: build: name: Build strategy: - fail-fast: false matrix: - os: [ubuntu-20.04, windows-2019, macos-10.15, macos-11] - java: [8, 11] - gradle: [5.6.4, 6.9.1] + os: [ubuntu-latest, windows-latest, macos-latest] + java: [11] + gradle: [wrapper, 6.9.1, 7.6.4, 8.6, current] experimental: [false] runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.experimental }} steps: - name: Checkout uses: actions/checkout@v4 - - name: Setup Java ${{ matrix.java }} + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@v2 + - name: Setup JDK ${{ matrix.java }} uses: actions/setup-java@v4 with: java-version: ${{ matrix.java }} distribution: 'temurin' - cache: gradle - - name: Validate Gradle wrapper - uses: gradle/wrapper-validation-action@v2 - name: Setup Gradle ${{ matrix.gradle }} - uses: gradle/actions/setup-gradle@v3 - id: setup-gradle + uses: actions/setup-gradle@v3 with: gradle-version: ${{ matrix.gradle }} + build-scan-publish: true + build-scan-terms-of-service-url: "https://gradle.com/terms-of-service" + build-scan-terms-of-service-agree: "yes" - name: Build - run: ./gradlew buildAll --parallel --stacktrace - - id: print-jvm-crash-logs - if: ${{ failure() }} - run: cat hs_err_pid*.log; cat **/hs_err_pid*.log; cat replay_pid*.log; cat **/replay_pid*.log; true - shell: bash + run: | + gradle buildAll diff --git a/.yamllint.yaml b/.yamllint.yaml new file mode 100644 index 0000000..36dc919 --- /dev/null +++ b/.yamllint.yaml @@ -0,0 +1,7 @@ +--- +extends: default + +rules: + comments-indentation: disable + line-length: + max: 120 diff --git a/README.md b/README.md index 0d9a24a..bf953ed 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ If the repository has no HEAD, Gitonium will fail. ## Building This repository is built with Gradle, which requires a JDK of at least version 8 to be installed. Higher versions may work depending on [which version of Gradle is used](https://docs.gradle.org/current/userguide/compatibility.html). -To build this repository, run `./gradlew buildAll` on Linux and macOS, or `gradlew buildAll` on Windows. +To build this repository, run `./gradlew build` on Linux and macOS, or `gradlew.bat build` on Windows. ### Automated Builds All branches and tags of this repository are built on: