fix: a native leak by unclosed Inflaters and Deflaters #817
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C2ME Build Script | |
on: | |
push: {} | |
pull_request: {} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
java-package: jdk | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
./.gradle/loom-cache | |
key: ${{ runner.os }}-gradle4-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle4- | |
- name: Build C2ME | |
run: | | |
./gradlew clean build --stacktrace | |
- name: upload to modrinth and curseforge | |
run: ./gradlew modrinth curseforge | |
if: github.ref == 'refs/heads/ver/1.18' | |
env: | |
MODRINTH_TOKEN: ${{ secrets.MODRINTH_UPLOAD_TOKEN }} | |
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_API_TOKEN }} | |
GITHUB_EVENT_RAW_PATH: ${{ github.event_path }} | |
continue-on-error: true | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: c2me-artifact | |
path: 'build/libs/*.jar' | |