Skip to content

Define basic GitHub Actions build #3

Define basic GitHub Actions build

Define basic GitHub Actions build #3

Workflow file for this run

name: build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8' ]
architecture: [ 'x64' ]
name: Build with JDK ${{ matrix.java }} on ${{ matrix.architecture }}
steps:
- uses: actions/checkout@v4
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
architecture: ${{ matrix.architecture }}
cache: 'gradle'
- name: Build with Gradle
run: ./gradlew asciidoc
env:
GITHUB_USER: 'foo'