Update to support latest MC #25
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 ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: ["ubuntu-latest", "windows-latest"] | |
| runs-on: "${{ matrix.os }}" | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: setup JDK 24 | |
| uses: actions/setup-java@v2 | |
| with: | |
| java-version: '24' | |
| distribution: 'corretto' | |
| cache: maven | |
| - name: cache maven packages | |
| uses: actions/cache@v1 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: build with maven | |
| run: mvn -B package --file pom.xml |