Skip to content

Commit

Permalink
3.2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Oct 24, 2024
1 parent 3fa52f3 commit 9067961
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 48 deletions.
93 changes: 46 additions & 47 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -723,51 +723,51 @@ jobs:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4
#java-publish:
# name: Publish java binding
# runs-on: ubuntu-latest
# needs:
# - setup
# - commit
# - java
# if: ${{ always() && github.event_name != 'pull_request' && needs.setup.outputs.release != 'null' }}
# env:
# JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_NAME }}
# JRELEASER_MAVENCENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASS }}
# JRELEASER_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASS }}
# JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.MAVEN_GPG_PUBLIC_KEY }}
# JRELEASER_GPG_SECRET_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
# JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# JRELEASER_VERSION: ${{ needs.setup.outputs.release }}
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-java@v4
# with:
# distribution: oracle
# java-version: 21
# - name: Prepare java binding
# working-directory: bindings/java
# run: |
# unzip ./bin/bindings.zip -d ./bin
# chmod +x ./gradlew
# ./gradlew jreleaserConfig
# ./gradlew clean build publish -x test
# shell: bash
# - name: Publish java binding
# working-directory: bindings/java
# run: ./gradlew jreleaserFullRelease
# continue-on-error: true
# shell: bash
# - name: Move jar file
# working-directory: bindings/java
# run: mv ./build/libs/decancer-${{ needs.setup.outputs.release }}.jar ../../decancer.jar
# shell: bash
# - name: Upload jar artifact
# uses: actions/upload-artifact@v4
# with:
# name: java-jar
# path: decancer.jar
# if-no-files-found: error
java-publish:
name: Publish java binding
runs-on: ubuntu-latest
needs:
- setup
#- commit
- java
if: ${{ always() && github.event_name != 'pull_request' && needs.setup.outputs.release != 'null' }}
env:
JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_NAME }}
JRELEASER_MAVENCENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASS }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASS }}
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.MAVEN_GPG_PUBLIC_KEY }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JRELEASER_VERSION: ${{ needs.setup.outputs.release }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: oracle
java-version: 21
- name: Prepare java binding
working-directory: bindings/java
run: |
unzip ./bin/bindings.zip -d ./bin
chmod +x ./gradlew
./gradlew jreleaserConfig
./gradlew clean build publish -x test
shell: bash
#- name: Publish java binding
# working-directory: bindings/java
# run: ./gradlew jreleaserFullRelease
# continue-on-error: true
# shell: bash
- name: Move jar file
working-directory: bindings/java
run: mv ./build/libs/decancer-${{ needs.setup.outputs.release }}.jar ../../decancer.jar
shell: bash
- name: Upload jar artifact
uses: actions/upload-artifact@v4
with:
name: java-jar
path: decancer.jar
if-no-files-found: error
publish:
name: Publish
runs-on: ubuntu-latest
Expand All @@ -777,11 +777,10 @@ jobs:
#- node-freebsd
- node
- native
- java
- wasm
#- commit
#- pages
#- java-publish
- java-publish
if: ${{ always() && github.event_name != 'pull_request' && needs.setup.outputs.release != 'null' }}
steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 4 additions & 1 deletion scripts/ci_artifacts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ if (
expectedNodeTargets.length !== 0 ||
!foundJavaJar
) {
console.error(`error: found missing targets. exiting.\nmissing native targets: ${expectedNativeTargets.length}\nmissing node targets: ${expectedNodeTargets.length}\nfound java jar: ${foundJavaJar ? 'yes' : 'no'}`)
console.error(`error: found missing targets. exiting.\n`
` missing native targets: ${expectedNativeTargets.length}\n`
` missing node targets: ${expectedNodeTargets.length}\n`
` found java jar: ${foundJavaJar ? 'yes' : 'no'}`)
process.exit(1)
}

0 comments on commit 9067961

Please sign in to comment.