chore: migrating match system to core module #44
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| paths: | |
| - '**/*.java' | |
| - '**/*.kt' | |
| - '**/*.gradle' | |
| - 'gradle/**' | |
| - 'resources/**' | |
| pull_request: | |
| branches: | |
| - main | |
| - develop | |
| paths: | |
| - '**/*.java' | |
| - '**/*.kt' | |
| - '**/*.gradle' | |
| - 'gradle/**' | |
| - 'resources/**' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build with Java 8 | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: "adopt" | |
| java-version: 8 | |
| - name: Cache .m2 directory | |
| uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2 | |
| id: cache | |
| with: | |
| path: ~/.m2 | |
| key: m2-cache | |
| restore-keys: | | |
| m2- | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 | |
| - name: Setup BuildTools | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| wget "https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar" | |
| java -jar BuildTools.jar --rev 1.15.2 | |
| - name: Download ProtocolLib | |
| run: wget -O ./libs/ProtocolLib.jar "https://github.com/dmulloy2/ProtocolLib/releases/download/4.8.0/ProtocolLib.jar" | |
| - name: Build with Gradle | |
| run: ./gradlew shadowJar | |
| - name: Upload a Build Artifact | |
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 | |
| with: | |
| path: build/libs/ |