merge 1.20 support into main #63
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: Java CI with Brachyura | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: submodules-init | |
# You may pin to the exact commit or the version. | |
# uses: snickerbockers/submodules-init@74927a8bb0fe1bb0f1f1e4d102384a8e69f19171 | |
uses: snickerbockers/submodules-init@v4 | |
- name: Compile project | |
run: java -jar brachyura-bootstrap-0.jar build | |
- name: get version | |
run: | | |
echo "ver=$(git rev-parse --short HEAD)" >> ${GITHUB_ENV} | |
- name: upload built jar | |
uses: actions/upload-artifact@v2 | |
if: ${{ always() }} | |
with: | |
name: foxclient-build-nightly-${{ env.ver }} | |
path: build/libs/*.jar |