From 37ff1ad2654a96ef386893b36221bd16f6fef434 Mon Sep 17 00:00:00 2001 From: Joe Lauer Date: Sat, 4 Nov 2023 15:21:32 -0400 Subject: [PATCH] Include GH action for Java 21 --- .github/workflows/java21.yaml | 17 +++++++++++++++++ .github/workflows/macos-x64.yaml | 2 +- README.md | 1 + 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/java21.yaml diff --git a/.github/workflows/java21.yaml b/.github/workflows/java21.yaml new file mode 100644 index 0000000..05c9642 --- /dev/null +++ b/.github/workflows/java21.yaml @@ -0,0 +1,17 @@ +name: Java 21 +on: + - push + - workflow_dispatch +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Azul JDK 21 + uses: actions/setup-java@v3 + with: + java-version: 21 + distribution: 'zulu' + cache: 'maven' + - name: Test in Maven + run: mvn --no-transfer-progress -B test \ No newline at end of file diff --git a/.github/workflows/macos-x64.yaml b/.github/workflows/macos-x64.yaml index d52bc72..4b6beb6 100644 --- a/.github/workflows/macos-x64.yaml +++ b/.github/workflows/macos-x64.yaml @@ -4,7 +4,7 @@ on: - workflow_dispatch jobs: build: - runs-on: macos-11 + runs-on: macos-latest steps: - uses: actions/checkout@v3 - name: Set up Azul JDK 11 diff --git a/README.md b/README.md index 2b3d462..5c2794c 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![Java 8](https://img.shields.io/github/actions/workflow/status/fizzed/bigmap/java8.yaml?branch=master&label=Java%208&style=flat-square)](https://github.com/fizzed/bigmap/actions/workflows/java8.yaml) [![Java 11](https://img.shields.io/github/actions/workflow/status/fizzed/bigmap/java11.yaml?branch=master&label=Java%2011&style=flat-square)](https://github.com/fizzed/bigmap/actions/workflows/java11.yaml) [![Java 17](https://img.shields.io/github/actions/workflow/status/fizzed/bigmap/java17.yaml?branch=master&label=Java%2017&style=flat-square)](https://github.com/fizzed/bigmap/actions/workflows/java17.yaml) +[![Java 21](https://img.shields.io/github/actions/workflow/status/fizzed/bigmap/java21.yaml?branch=master&label=Java%2021&style=flat-square)](https://github.com/fizzed/bigmap/actions/workflows/java21.yaml) [![Linux x64](https://img.shields.io/github/actions/workflow/status/fizzed/bigmap/java11.yaml?branch=master&label=Linux%20x64&style=flat-square)](https://github.com/fizzed/bigmap/actions/workflows/java11.yaml) [![MacOS x64](https://img.shields.io/github/actions/workflow/status/fizzed/bigmap/macos-x64.yaml?branch=master&label=MacOS%20x64&style=flat-square)](https://github.com/fizzed/bigmap/actions/workflows/macos-x64.yaml)