-
Notifications
You must be signed in to change notification settings - Fork 9
67 lines (64 loc) · 2.48 KB
/
buildPeass.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Build Peass libraries
on:
pull_request:
branches: [ main, develop ]
workflow_dispatch:
branches: [ main, develop ]
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest] # no macos-latest since github actions always procudes EDTIMEOUT
java: [ 11, 17, 21 ]
fail-fast: false
runs-on: ${{ matrix.os }}
name: Java ${{ matrix.java }} OS ${{ matrix.os }} sample
steps:
- name: Set Git Property and output path
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
git config --system core.longpaths true
echo %PATH%
where mvn
mvn -version
fi
shell: bash
- uses: actions/checkout@v4
- name: Install git-crypt
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt-get install git-crypt
fi
shell: bash
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build Peass all (for version compatibility check)
run: ./mvnw -B package -DskipTests -P buildStarter --file pom.xml && ls ~/.m2/repository/ && ls ~/.m2/repository/de/dagere/kopeme/kopeme-core
# run: rm ~/.m2/repository/de/dagere/kopeme/ -r && ./mvnw -B package -DskipTests -P buildStarter --file pom.xml && ls ~/.m2/repository/ && ls ~/.m2/repository/de/dagere/kopeme/kopeme-core
- name: Build Peass dependency, measurement and analysis
run: ./mvnw -B install --file pom.xml
- name: Publish Test Report ${{ matrix.java }} OS ${{ matrix.os }}
if: ${{ always() }}
uses: scacap/action-surefire-report@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
check_name: Test Report ${{ matrix.java }} OS ${{ matrix.os }}
- name: Upload Unit Test Results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: Unit Test Results (Java ${{ matrix.java }} OS ${{ matrix.os }})
path: |
dependency/target/surefire-reports/*
measurement/target/surefire-reports/*
analysis/target/surefire-reports/*