From 50fbf09278f7356226d4045b7ed918b7622ea751 Mon Sep 17 00:00:00 2001 From: zwiterrion Date: Tue, 30 Jan 2024 11:08:38 +0100 Subject: [PATCH] add action to build java jar --- .github/workflows/ci-java.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci-java.yml diff --git a/.github/workflows/ci-java.yml b/.github/workflows/ci-java.yml new file mode 100644 index 00000000..3638a5a7 --- /dev/null +++ b/.github/workflows/ci-java.yml @@ -0,0 +1,36 @@ +on: + pull_request: + paths: + - .github/actions/extism/** + - .github/workflows/ci-java.yml + - manifest/** + - runtime/** + - libextism/** + - java/** + workflow_dispatch: + + name: Java CI + + jobs: + java: + name: Java + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + version: [11, 17] + rust: + - stable + steps: + - name: Checkout sources + uses: actions/checkout@v3 + - uses: ./.github/actions/extism + - name: Set up Java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '${{ matrix.version }}' + - name: Test Java + run: | + cd java + mvn --batch-mode -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn verify \ No newline at end of file