Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Feb 16, 2024
1 parent 4398681 commit 5826a77
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
extends: default

rules:
comments-indentation: disable
line-length:
max: 120
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5826a77

Please sign in to comment.