cleanup packet modules #1109
This file contains hidden or 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: Build and upload jar | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| - name: Validate Gradle wrapper | |
| uses: gradle/wrapper-validation-action@v1 | |
| with: | |
| min-wrapper-count: 1 | |
| allow-snapshots: false | |
| - name: Cache Gradle dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| gradle-${{ runner.os }}- | |
| - name: Build with Gradle | |
| uses: gradle/gradle-build-action@v2.4.2 | |
| with: | |
| arguments: build test --stacktrace --scan | |
| - name: Upload Legacy Build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: AnarchyExploitFixes-Legacy | |
| path: AnarchyExploitFixesLegacy/build/libs/AnarchyExploitFixes-Legacy*.jar | |
| if-no-files-found: error | |
| - name: Upload Folia Build | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: AnarchyExploitFixes-Folia | |
| path: AnarchyExploitFixesFolia/build/libs/AnarchyExploitFixes-Folia*.jar | |
| if-no-files-found: error |