mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 07:14:50 +01:00
ci: new ci run
Co-authored-by: alemi <me@alemi.dev>
This commit is contained in:
parent
07e11a7817
commit
d2635de37b
1 changed files with 17 additions and 8 deletions
25
.github/workflows/java.yml
vendored
25
.github/workflows/java.yml
vendored
|
@ -23,26 +23,34 @@ jobs:
|
||||||
filename: codemp.dll
|
filename: codemp.dll
|
||||||
- runner: macos-14
|
- runner: macos-14
|
||||||
target: darwin-arm64
|
target: darwin-arm64
|
||||||
filename: codemp.dylib
|
filename: libcodemp.dylib
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
- uses: arduino/setup-protoc@v3
|
- uses: arduino/setup-protoc@v3
|
||||||
with:
|
with:
|
||||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- run: cargo build --release --features=java
|
||||||
|
- uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: codemp-java-${{ matrix.platform.target }}
|
||||||
|
path: target/release/${{ matrix.platform.filename }}
|
||||||
|
|
||||||
|
publish:
|
||||||
|
needs: [build]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
path: dist/java/artifacts
|
||||||
|
pattern: codemp-java-*
|
||||||
- uses: actions/setup-java@v4
|
- uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '11'
|
java-version: '11'
|
||||||
- uses: gradle/actions/setup-gradle@v4
|
- uses: gradle/actions/setup-gradle@v4
|
||||||
with:
|
with:
|
||||||
gradle-version: "8.10" # Quotes required to prevent YAML converting to number
|
gradle-version: "8.10"
|
||||||
- run: gradle build
|
|
||||||
working-directory: dist/java
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: codemp-java-${{ matrix.platform.target }}
|
|
||||||
path: dist/java/build/libs
|
|
||||||
- run: gradle publish
|
- run: gradle publish
|
||||||
working-directory: dist/java
|
working-directory: dist/java
|
||||||
env:
|
env:
|
||||||
|
@ -50,3 +58,4 @@ jobs:
|
||||||
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
|
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
|
||||||
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.MAVEN_CENTRAL_GPG_SECRET_KEY }}
|
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.MAVEN_CENTRAL_GPG_SECRET_KEY }}
|
||||||
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.MAVEN_CENTRAL_GPG_PASSWORD }}
|
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.MAVEN_CENTRAL_GPG_PASSWORD }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue