From 0c9893f442062b7d2aee98ba3cc4bf776505efa5 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 9 Sep 2024 20:19:26 +0200 Subject: [PATCH] ci: java ci to make jars --- .github/workflows/java.yml | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/java.yml diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml new file mode 100644 index 0000000..66a475c --- /dev/null +++ b/.github/workflows/java.yml @@ -0,0 +1,43 @@ +name: java + +on: + push: + branches: + - ci + - stable + +permissions: + contents: read + +jobs: + build: + runs-on: ${{ matrix.platform.runner }} + strategy: + fail-fast: false + matrix: + platform: + - runner: ubuntu-latest + target: linux-x64-gnu + filename: libcodemp.so + - runner: windows-latest + target: win32-x64 + filename: codemp.dll + - runner: macos-14 + target: darwin-arm64 + filename: codemp.dylib + #- runner: macos-12 + # target: darwin-x64 + # filename: codemp.dylib + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: arduino/setup-protoc@v3 + - uses: gradle/actions/setup-gradle@v4 + with: + gradle-version: "8.10" # Quotes required to prevent YAML converting to number + - run: gradle build + working-directory: dist/java + - uses: actions/upload-artifact@v4 + with: + name: codemp-java-${{ matrix.platform.target }} + path: dist/java/build/libs