Skip to content

Commit

Permalink
Update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Apr 17, 2024
1 parent 615a269 commit db48ecf
Showing 1 changed file with 29 additions and 23 deletions.
52 changes: 29 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,48 @@
---
name: Build
on:

on: # yamllint disable-line rule:truthy
push:
branches:
- master
- develop
tags:
- "release-*.*.*"
pull_request:
branches:
- master
- develop
-
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-10.15, macos-11]
java: [8, 11]
gradle: [6.9.2, 7.3.3]
experimental: [false]
os: [ubuntu-latest, windows-latest, macos-latest]
java: [11]
gradle: [7.6.4]
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
timeout-minutes: 10 # Timeout in 10 minutes, as Stratego initialization can sometimes deadlock
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- name: Checkout
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Setup JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
- uses: actions/cache@v2
id: cache-gradle
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ matrix.gradle }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-${{ runner.os }}-
- uses: eskatos/gradle-command-action@v1
distribution: 'temurin'
- name: Setup Gradle ${{ matrix.gradle }}
uses: gradle/actions/setup-gradle@v3
with:
gradle-version: ${{ matrix.gradle }}
arguments: 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 {0}
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/help/legal-terms-of-use"
build-scan-terms-of-use-agree: "yes"
- name: Build
run: |
gradle buildAll --parallel --stacktrace
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit db48ecf

Please sign in to comment.