-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 1.31 KB
/
Copy pathmaven-verify.yml
File metadata and controls
48 lines (37 loc) · 1.31 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
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Java CI with Maven
permissions:
contents: read
pull-requests: write
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main", "releases/**" ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
maven_verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'liberica'
cache: maven
- name: Install OpenGL dependencies
run: |
sudo apt-get update
sudo apt-get install -y mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev freeglut3-dev build-essential
- name: Build with Maven
run: |
./mvnw -B package --file pom.xml -Plinux-x86