-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 965 Bytes
/
Copy pathbuild.yml
File metadata and controls
41 lines (34 loc) · 965 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
35
36
37
38
39
40
41
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
# Some actions (notably upload-artifact@v5) still declare Node.js 20 in
# their action.yml. GitHub is forcing Node 24 as default on 2026-06-16 and
# removing Node 20 entirely on 2026-09-16. Opt into Node 24 early so the
# next runner upgrade doesn't break the build.
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: 'true'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v5
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '21'
cache: maven
- name: Build and test
run: mvn -B -ntp verify
- name: Upload jar
if: success()
uses: actions/upload-artifact@v5
with:
name: ifconfig-java
path: target/*.jar
if-no-files-found: error