forked from langchain4j/langchain4j-cdi
-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (60 loc) · 1.53 KB
/
build.yml
File metadata and controls
70 lines (60 loc) · 1.53 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: LangChain4J CDI Build
on:
push:
branches:
- main
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
- 'NOTICE'
- '*.md'
- '.github/*.md'
- '.github/*.yml'
- '.github/*.conf'
- '.github/ISSUE_TEMPLATE/*.md'
pull_request:
paths-ignore:
- '.gitignore'
- 'CODEOWNERS'
- 'LICENSE'
- 'NOTICE'
- '*.md'
- '.github/*.md'
- '.github/*.yml'
- '.github/*.conf'
- '.github/ISSUE_TEMPLATE/*.md'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: build with jdk 21, target 17
steps:
- uses: actions/checkout@v5
name: checkout
- uses: actions/setup-java@v5
name: set up jdk 21
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
cache-dependency-path: '**/pom.xml'
- name: build with maven
run: ./mvnw -B spotless:check verify --file pom.xml
build-windows:
runs-on: windows-latest
name: build with jdk 21 on windows (target 17)
steps:
- name: git configure long path
run: git config --global core.longpaths true
- uses: actions/checkout@v5
name: checkout
- uses: actions/setup-java@v5
name: set up jdk 21
with:
distribution: 'temurin'
java-version: '21'
cache: 'maven'
cache-dependency-path: '**/pom.xml'
- name: build with maven
run: .\mvnw -B spotless:check verify --file pom.xml