Repository navigation
CI: migrate CleanerX to Build Explorer v2 metadata #127
Workflow file for this run
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 CleanerX | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Build ${{ matrix.platform }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| platform: [Paper, Spigot] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '25' | |
| distribution: 'temurin' | |
| - name: Cache Gradle deps | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.gradle/caches | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*','**/gradle-wrapper.properties') }} | |
| restore-keys: ${{ runner.os }}-gradle- | |
| - name: Make gradlew executable | |
| run: chmod +x ./gradlew | |
| - name: Build ${{ matrix.platform }} | |
| run: | | |
| ./gradlew :CleanerX-${{ matrix.platform }}:build \ | |
| --no-daemon --stacktrace --refresh-dependencies | |
| - name: Upload ${{ matrix.platform }} JAR | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: CleanerX-${{ matrix.platform }}.jar | |
| path: CleanerX-${{ matrix.platform }}/build/libs/*.jar | |
| retention-days: 7 |