Skip to content

Commit

Permalink
Add GitHub Actions continuous build
Browse files Browse the repository at this point in the history
Signed-off-by: Jongwoo Han <[email protected]>
  • Loading branch information
jongwooo committed Dec 11, 2024
1 parent 599d9a8 commit aead544
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Build

on:
pull_request:
push:
branches:
- master
paths-ignore:
- '**.md'
- 'docs/**'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}

jobs:
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
- macos-13
java-version:
- 8
- 11
- 17
- 21
- 23
# macos-latest drops support for java 8 temurin. Run java 8 on macos-13. Run java 11, 17, 21, 23 on macos-latest.
exclude:
- os: macos-latest
java-version: 8
- os: macos-13
java-version: 11
- os: macos-13
java-version: 17
- os: macos-13
java-version: 21
- os: macos-13
java-version: 23
steps:
- uses: actions/checkout@v4

- name: Set up Java ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java-version }}
cache: 'maven'

# Generate GraphQL client codes
- name: Download additional sources
run: mvn generate-sources

- name: Build with Maven
run: >
mvn -B package
-DskipTests

0 comments on commit aead544

Please sign in to comment.