1
1
# Default image for linux builds
2
2
# Using core instead of base to get access to ASAN from clang.
3
- image : objectboxio/buildenv-core:2023-07-28
3
+ image : objectboxio/buildenv-core:2023-07-28 # Includes JDK 17.0.8
4
4
5
5
# Assumes these environment variables are configured in GitLab CI/CD Settings:
6
6
# - OBX_READ_PACKAGES_TOKEN
@@ -45,7 +45,10 @@ workflow:
45
45
46
46
test :
47
47
stage : test
48
- tags : [ docker, linux, x64 ]
48
+ tags :
49
+ - docker
50
+ - linux # Select Docker host that can run the used Linux image
51
+ - x64
49
52
variables :
50
53
# Image defaults to POSIX (ASCII), set a compatible locale so UTF-8 tests that interact with the file system work.
51
54
# Check with 'locale -a' for available locales.
@@ -85,19 +88,27 @@ test:
85
88
test-windows :
86
89
extends : .test-template
87
90
needs : ["test"]
88
- tags : [ windows ]
91
+ tags :
92
+ - windows-jdk
93
+ - x64
89
94
script : ./gradlew $GITLAB_REPO_ARGS $VERSION_ARGS clean build
90
95
91
96
test-macos :
92
97
extends : .test-template
93
98
needs : ["test"]
94
- tags : [mac11+, x64]
99
+ tags :
100
+ - mac
101
+ - x64
102
+ - jdk
95
103
script : ./gradlew $GITLAB_REPO_ARGS $VERSION_ARGS clean build
96
104
97
105
# Address sanitizer is only available on Linux runners (see script).
98
106
.test-asan-template :
99
107
extends : .test-template
100
- tags : [ docker, linux, x64 ]
108
+ tags :
109
+ - docker
110
+ - linux # Select Docker host that can run the used Linux image
111
+ - x64
101
112
variables :
102
113
# Image defaults to POSIX (ASCII), set a compatible locale so UTF-8 tests that interact with the file system work.
103
114
# Check with 'locale -a' for available locales.
@@ -124,7 +135,9 @@ test-jdk-11:
124
135
test-jdk-x86 :
125
136
extends : .test-template
126
137
needs : ["test-windows"]
127
- tags : [ windows ]
138
+ tags :
139
+ - windows-jdk
140
+ - x64
128
141
variables :
129
142
# TEST_WITH_JAVA_X86 makes objectbox-java-test use 32-bit java executable and therefore
130
143
# 32-bit ObjectBox to run tests (see build.gradle file).
@@ -135,7 +148,10 @@ test-jdk-x86:
135
148
# Publish Maven artifacts to internal Maven repo
136
149
publish-maven-internal :
137
150
stage : publish-maven-internal
138
- tags : [ docker, x64 ]
151
+ tags :
152
+ - docker
153
+ - linux # Select Docker host that can run the used Linux image
154
+ - x64
139
155
rules :
140
156
# Not for main branch, doing so may duplicate release artifacts (uploaded from publish branch)
141
157
- if : $CI_COMMIT_BRANCH == "main"
@@ -154,7 +170,10 @@ publish-maven-internal:
154
170
# Publish Maven artifacts to public Maven repo at Central
155
171
publish-maven-central :
156
172
stage : publish-maven-central
157
- tags : [ docker, x64 ]
173
+ tags :
174
+ - docker
175
+ - linux # Select Docker host that can run the used Linux image
176
+ - x64
158
177
rules :
159
178
# Only on publish branch, only if no previous stages failed
160
179
- if : $CI_COMMIT_BRANCH == "publish"
@@ -172,7 +191,10 @@ publish-maven-central:
172
191
# Create Java API docs archive
173
192
package-api-docs :
174
193
stage : package-api-docs
175
- tags : [ docker, x64 ]
194
+ tags :
195
+ - docker
196
+ - linux # Select Docker host that can run the used Linux image
197
+ - x64
176
198
rules :
177
199
# Only on publish branch, only if no previous stages failed
178
200
- if : $CI_COMMIT_BRANCH == "publish"
0 commit comments