-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (45 loc) · 1.12 KB
/
Copy pathbuild.yml
File metadata and controls
55 lines (45 loc) · 1.12 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
name: Build AutoStepper
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'temurin'
cache: maven
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: '3.9.12'
- name: Build with Maven
run: mvn clean package -B
- name: Run tests (if any)
run: mvn test
- name: Upload build artifacts
uses: actions/upload-artifact@v6
with:
name: AutoStepper-jar
path: |
build/AutoStepper.jar
build/lib/
retention-days: 30
- name: Upload build artifacts
uses: actions/upload-artifact@v6
with:
name: AutoStepper-with-deps
path: |
build/AutoStepper-with-deps.jar
retention-days: 30
- name: Generate test report
if: success() || failure()
run: echo "Build completed"