From aead54437a06cd238ff961e7587eb9064e9c24f5 Mon Sep 17 00:00:00 2001 From: Jongwoo Han Date: Mon, 9 Dec 2024 15:14:01 +0900 Subject: [PATCH] Add GitHub Actions continuous build Signed-off-by: Jongwoo Han --- .github/workflows/build.yaml | 63 ++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..58cc205 --- /dev/null +++ b/.github/workflows/build.yaml @@ -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