Skip to content

Commit

Permalink
ci: java ci to make jars
Browse files Browse the repository at this point in the history
  • Loading branch information
alemidev committed Sep 9, 2024
1 parent f6dba8a commit aebf007
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit aebf007

Please sign in to comment.