-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 783 Bytes
/
Copy pathci.yml
File metadata and controls
33 lines (26 loc) · 783 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
name: Java CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Compile Java source
run: javac FileStatisticsProcessor.java
- name: Package JAR
run: jar --create --file java-file-statistics-processor.jar --main-class FileStatisticsProcessor FileStatisticsProcessor.class 'FileStatisticsProcessor$*.class'
- name: Upload JAR artifact
uses: actions/upload-artifact@v4
with:
name: java-file-statistics-processor
path: java-file-statistics-processor.jar