2020 submodules : recursive
2121
2222 - name : Prepare build environemnt
23- id : prepare
2423 uses : ./.github/actions/prepare-build-env
2524
2625 - name : Install required tools
4443 cd thirdparty/libxml2
4544 emmake make install -j$(nproc)
4645
46+ - name : Upload build artifacts
47+ 48+ with :
49+ name : libxml2
50+ path : $GITHUB_WORKSPACE/dist
51+ if-no-files-found : error
52+ retention-days : 1
53+ overwrite : true
54+
4755 SQLite :
4856 timeout-minutes : 10
4957 runs-on : ubuntu-24.04
5462 submodules : recursive
5563
5664 - name : Prepare build environemnt
57- id : prepare
5865 uses : ./.github/actions/prepare-build-env
5966
6067 - name : Install required tools
8996 cd thirdparty/sqlite
9097 emmake make install -j$(nproc)
9198
99+ - name : Upload build artifacts
100+ 101+ with :
102+ name : SQLite
103+ path : $GITHUB_WORKSPACE/dist
104+ if-no-files-found : error
105+ retention-days : 1
106+ overwrite : true
107+
92108 GEOS :
93109 timeout-minutes : 10
94110 runs-on : ubuntu-24.04
99115 submodules : recursive
100116
101117 - name : Prepare build environemnt
102- id : prepare
103118 uses : ./.github/actions/prepare-build-env
104119
105120 - name : Configure build tools
@@ -114,6 +129,15 @@ jobs:
114129 cd thirdparty/geos/build
115130 emmake make install -j$(nproc)
116131
132+ - name : Upload build artifacts
133+ 134+ with :
135+ name : GEOS
136+ path : $GITHUB_WORKSPACE/dist
137+ if-no-files-found : error
138+ retention-days : 1
139+ overwrite : true
140+
117141 PROJ :
118142 needs : [SQLite]
119143 timeout-minutes : 10
@@ -125,9 +149,13 @@ jobs:
125149 submodules : recursive
126150
127151 - name : Prepare build environemnt
128- id : prepare
129152 uses : ./.github/actions/prepare-build-env
130153
154+ - name : Restore previous build artifacts
155+ 156+ with :
157+ name : SQLite
158+
131159 - name : Configure build tools
132160 run : |
133161 cd thirdparty/PROJ
@@ -145,6 +173,15 @@ jobs:
145173 cd thirdparty/PROJ/build
146174 emmake make install -j$(nproc)
147175
176+ - name : Upload build artifacts
177+ 178+ with :
179+ name : PROJ
180+ path : $GITHUB_WORKSPACE/dist
181+ if-no-files-found : error
182+ retention-days : 1
183+ overwrite : true
184+
148185 GDAL :
149186 needs : [SQLite, PROJ]
150187 timeout-minutes : 10
@@ -156,9 +193,13 @@ jobs:
156193 submodules : recursive
157194
158195 - name : Prepare build environemnt
159- id : prepare
160196 uses : ./.github/actions/prepare-build-env
161197
198+ - name : Restore previous build artifacts
199+ 200+ with :
201+ pattern : ' {SQLite,PROJ}'
202+
162203 - name : Trigger port loading
163204 run : |
164205 EM_DATA=$EMSDK/upstream/emscripten
@@ -184,6 +225,15 @@ jobs:
184225 cd thirdparty/gdal/build
185226 emmake make install -j$(nproc)
186227
228+ - name : Upload build artifacts
229+ 230+ with :
231+ name : GDAL
232+ path : $GITHUB_WORKSPACE/dist
233+ if-no-files-found : error
234+ retention-days : 1
235+ overwrite : true
236+
187237 MapServer :
188238 needs : [GDAL, GEOS, PROJ, libxml2]
189239 timeout-minutes : 10
@@ -195,9 +245,13 @@ jobs:
195245 submodules : recursive
196246
197247 - name : Prepare build environemnt
198- id : prepare
199248 uses : ./.github/actions/prepare-build-env
200249
250+ - name : Restore previous build artifacts
251+ 252+ with :
253+ pattern : ' {GDAL,GEOS,PROJ,libxml2}'
254+
201255 - name : Trigger port loading
202256 run : |
203257 EM_DATA=$EMSDK/upstream/emscripten
@@ -231,3 +285,12 @@ jobs:
231285 cp libmapserver.a $GITHUB_WORKSPACE/dist/lib
232286 cp *.h $GITHUB_WORKSPACE/dist/include
233287 cp ../*.h $GITHUB_WORKSPACE/dist/include
288+
289+ - name : Upload build artifacts
290+ 291+ with :
292+ name : MapServer
293+ path : $GITHUB_WORKSPACE/dist
294+ if-no-files-found : error
295+ retention-days : 1
296+ overwrite : true
0 commit comments