-
Notifications
You must be signed in to change notification settings - Fork 1
106 lines (97 loc) · 3.46 KB
/
Copy pathbuildGEMOC2.yml
File metadata and controls
106 lines (97 loc) · 3.46 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#
name: BuildGEMOC
on:
push:
jobs:
pomfirst-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Show context
run: |
id -u
id -g
echo $HOME
ls -lsa $HOME
echo ${{ github.workspace }}
ls -lsa ${{ github.workspace }}
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-pomfirst-${{ hashFiles('**/pom.xml', '**/MANIFEST.MF', '**/*.target') }}
restore-keys: ${{ runner.os }}-m2-pomfirst
- name: Set UID and GID env
# required to correctly map the userId in the docker image
run: |
echo "UID=$(id -u)" >> $GITHUB_ENV
echo "GID=$(id -g)" >> $GITHUB_ENV
- name: Generate protocol in container
uses: addnab/docker-run-action@v3
with:
image: gemoc/gemoc-builder:latest
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.HOME }}/.m2:/home/ubuntu/.m2
run: |
echo "This step is using a Public Docker Container Action "
./generate_protocols.sh
- name: pomfirst build
uses: addnab/docker-run-action@v3
with:
image: gemoc/gemoc-builder:latest
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.HOME }}/.m2:/home/ubuntu/.m2
run: |
echo "This step is using a Public Docker Container Action "
./pomfirst_build.sh
tycho-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Show context
run: |
id -u
id -g
echo $HOME
ls -lsa $HOME
echo ${{ github.workspace }}
ls -lsa ${{ github.workspace }}
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-tycho-${{ hashFiles('**/pom.xml', '**/MANIFEST.MF', '**/*.target') }}
restore-keys: ${{ runner.os }}-m2-tycho
- name: Set UID and GID vars
id: vars
# required to correctly map the userId in the docker image
run: |
echo "uid=$(id -u)" >> $GITHUB_OUTPUT
echo "gid=$(id -g)" >> $GITHUB_OUTPUT
- name: Generate Protocol classes
uses: addnab/docker-run-action@v3
with:
image: gemoc/gemoc-builder:latest
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.HOME }}/.m2:/home/ubuntu/.m2
run: |
id
./generate_protocols.sh
- name: tycho linux_no_system_test build
uses: addnab/docker-run-action@v3
with:
image: gemoc/gemoc-builder:latest
options: -v ${{ github.workspace }}:/home/ubuntu/src -v ${{ env.HOME }}/.m2:/home/ubuntu/.m2 --env UID=${{ steps.vars.outputs.uid }} --env GID=${{ steps.vars.outputs.gid }}
run: |
id
env
chmod -R a+rw /home/ubuntu/.m2
/entrypoint ./tycho_build.sh linux_no_system_test
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2.17.0
if: always() # always run even if the previous step fails
with:
junit_files: "**/target/surefire-reports/TEST-*.xml"