up #4
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 22 | |
env: | |
JAVA_HOME: $HOME/bin/jdk | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache Maven dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven- | |
- name : path | |
run: echo "$JAVA_HOME/bin" >> $GITHUB_PATH | |
- name: download the JDK | |
run: cd $GITHUB_WORKSPACE && ./jdk.sh | |
- name: "build, you beautiful thing, build!" | |
run: cd $GITHUB_WORKSPACE && ./native.sh | |