40 lines
940 B
YAML
40 lines
940 B
YAML
|
name: Build
|
||
|
|
||
|
env:
|
||
|
JAVA_OPTS: "-Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -server -XX:+UseG1GC"
|
||
|
GRADLE_OPTS: "-Xms512m -Xmx6048m -Xss128m -XX:ReservedCodeCacheSize=512m -server -XX:+UseG1GC"
|
||
|
TERM: xterm-256color
|
||
|
JDK_CURRENT: 17
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches: [ master ]
|
||
|
pull_request:
|
||
|
branches: [ master ]
|
||
|
|
||
|
jobs:
|
||
|
cancel-previous-runs:
|
||
|
runs-on: ubuntu-latest
|
||
|
timeout-minutes: 1
|
||
|
steps:
|
||
|
- uses: styfle/cancel-workflow-action@0.11.0
|
||
|
with:
|
||
|
access_token: ${{ github.token }}
|
||
|
build:
|
||
|
needs: cancel-previous-runs
|
||
|
strategy:
|
||
|
fail-fast: false
|
||
|
matrix:
|
||
|
os: [ ubuntu-latest ]
|
||
|
runs-on: ${{ matrix.os }}
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
- name: Set up JDK
|
||
|
uses: actions/setup-java@v3
|
||
|
with:
|
||
|
java-version: ${{ env.JDK_CURRENT }}
|
||
|
distribution: 'temurin'
|
||
|
- name: Build
|
||
|
run: ./gradlew clean build
|
||
|
|