mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-25 08:34:47 +01:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: java
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 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
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
- uses: arduino/setup-protoc@v3
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
- 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
|
|
|
|
# TODO add a publish step to maven central
|