@@ -37,59 +37,92 @@ jobs:
37
37
# ---------------------------------------------
38
38
verify :
39
39
name : Verify
40
- runs-on : ubuntu-20 .04
40
+ runs-on : ubuntu-22 .04
41
41
42
42
steps :
43
43
# --------------------------------------------
44
44
# Checks out a copy of the repository
45
45
# --------------------------------------------
46
46
- name : Setup - Checkout code
47
- uses : actions/checkout@v2
47
+
48
+
49
+ - name : Setup - Java 17
50
+
51
+ with :
52
+ java-version : 17
53
+ distribution : " temurin"
48
54
49
55
# --------------------------------------------
50
56
# Run a quick sanity check if all commits are
51
57
# handed in by known users
52
58
# ---------------------------------------------
53
59
- name : Verify - Authors Sanity Check
54
- uses : virtualsatellite/ci-actions/ci-verify-authors-action@v4
60
+ uses : virtualsatellite/ci-actions/ci-verify-authors-action@v7
61
+
55
62
56
63
# -----------------------------------------------------
57
64
# Build, Assemble and Deploy Job
58
65
# -----------------------------------------------------
59
66
deploy :
60
67
name : Build, Assemble and Deploy
61
- runs-on : ubuntu-20 .04
68
+ runs-on : ubuntu-22 .04
62
69
needs : [verify]
63
70
64
71
steps :
65
72
# --------------------------------------------
66
73
# Checks out a copy of your repository
67
74
# --------------------------------------------
68
75
- name : Setup - Checkout code
69
- uses : actions/checkout@v2
76
+
77
+
78
+ - name : Setup - Java 17
79
+
80
+ with :
81
+ java-version : 17
82
+ distribution : " temurin"
83
+ cache : ' maven'
84
+
85
+ - name : Setup - Maven 3.9.6
86
+ uses : virtualsatellite/ci-actions/ci-maven-setup@v7
87
+ with :
88
+ maven-version : " 3.9.6"
89
+
90
+ - name : Setup - Cache maven download
91
+
92
+ with :
93
+ path : ./maven.tar.gz
94
+ key : ${{ runner.os }}-local-maven-setup-${{ hashFiles('**/pom.xml') }}
95
+ restore-keys : |
96
+ ${{ runner.os }}-local-maven-setup-
97
+ ${{ runner.os }}-local-maven-
98
+
70
99
71
100
# --------------------------------------------
72
101
# Setup caching for m2 repository
73
102
# --------------------------------------------
74
- - name : Setup - Cache local m2 repository
75
- uses : actions/cache@v2
76
- with :
77
- path : ~/.m2/repository/
78
- key : ${{ runner.os }}-local-m2-deploy-${{ hashFiles('**/pom.xml') }}
79
- restore-keys : |
80
- ${{ runner.os }}-local-m2-deploy-
81
- ${{ runner.os }}-local-m2-
103
+ # - name: Setup - Cache local m2 repository
104
+
105
+ # with:
106
+ # cache-always: true
107
+ # path: ~/.m2/repository/
108
+ # key: ${{ runner.os }}-local-m2-deploy-${{ hashFiles('**/pom.xml') }}
109
+ # restore-keys: |
110
+ # ${{ runner.os }}-local-m2-deploy-
111
+ # ${{ runner.os }}-local-m2-
82
112
83
113
- name : Setup - Clean local m2 repository
84
- run : rm -rf ~/.m2/repository/de/dlr/sc/virsat
114
+ run : |
115
+ ls -d ~/.m2/repository/*/*/* || true
116
+ rm -rf ~/.m2/repository/de/dlr/sc/virsat
85
117
86
118
# --------------------------------------------
87
119
# Setup caching for p2 repository
88
120
# --------------------------------------------
89
121
- name : Setup - Cache local p2 repository
90
- uses : actions/cache@v2
122
+ uses : actions/cache@v4.0.2
91
123
with :
92
124
path : ./p2Repo
125
+ save-always : true
93
126
key : ${{ runner.os }}-local-p2-deploy-${{ hashFiles('**/pom.xml') }}
94
127
restore-keys : |
95
128
${{ runner.os }}-local-p2-deploy-
@@ -99,16 +132,16 @@ jobs:
99
132
# Perform various setup operations
100
133
# --------------------------------------------
101
134
- name : Setup - Prepare OS
102
- uses : virtualsatellite/ci-actions/ci-setup-action@v5
135
+ uses : virtualsatellite/ci-actions/ci-setup-action@v7
103
136
with :
104
- jdk : 11
137
+ jdk : no
105
138
106
139
# --------------------------------------------
107
140
# Development and Feature branches
108
141
# --------------------------------------------
109
142
- name : Build - Build and Deploy Decision
110
143
id : build_decision
111
- uses : virtualsatellite/ci-actions/ci-build-decision-action@v4
144
+ uses : virtualsatellite/ci-actions/ci-build-decision-action@v7
112
145
113
146
# --------------------------------------------
114
147
# Prepare p2 Repos
@@ -120,7 +153,7 @@ jobs:
120
153
# Development and Feature branches
121
154
# --------------------------------------------
122
155
- name : Build - Assemble
123
- uses : virtualsatellite/ci-actions/ci-maven-simple-build-action@v5
156
+ uses : virtualsatellite/ci-actions/ci-maven-simple-build-action@v7
124
157
with :
125
158
build_job : assemble
126
159
build_profile : ${{ steps.build_decision.outputs.build_type }}
@@ -129,7 +162,7 @@ jobs:
129
162
# Upload deployable applications
130
163
# --------------------------------------------
131
164
- name : Build - Upload Build Artifacts
132
- uses : actions/upload-artifact@v2
165
+ uses : actions/upload-artifact@v4.3.1
133
166
with :
134
167
name : Deployable Applications
135
168
path : |
@@ -141,7 +174,7 @@ jobs:
141
174
# Deploying to github releases
142
175
# --------------------------------------------
143
176
- name : Build - Deploy GH
144
- uses : virtualsatellite/ci-actions/ci-deploy-gh-product-action@v4
177
+ uses : virtualsatellite/ci-actions/ci-deploy-gh-product-action@v7
145
178
with :
146
179
build_profile : ${{ steps.build_decision.outputs.build_type }}
147
180
gh_token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments