forked from spring-tips/java22
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (25 loc) · 705 Bytes
/
build.yml
File metadata and controls
35 lines (25 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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