-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (36 loc) · 994 Bytes
/
build.yml
File metadata and controls
36 lines (36 loc) · 994 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
name: build-wf
on:
pull_request:
workflow_call:
jobs:
build:
strategy:
matrix:
os: [ubuntu-24.04, windows-2025]
runs-on: ${{ matrix.os }}
steps:
- name: Enable Long Paths in Git (Linux)
if: runner.os == 'Linux'
run: sudo git config --system core.longpaths true
- name: Enable Long Paths in Git (Windows)
if: runner.os == 'Windows'
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
- name: Setup JDK
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: 17
cache: 'maven'
- name: Build Packages
run: ./mvnw clean package
- name: Store P2 Repository
if: runner.os == 'Linux'
uses: actions/upload-artifact@v6
with:
name: p2-jamopp
path: jamopp.p2/target/repository
retention-days: 1