@@ -29,7 +29,7 @@ concurrency:
2929#
3030# The three workflows:
3131#
32- # - build.yml (with jobs test-new, test-mod, test- long),
32+ # - build.yml (with jobs test-new, test-long),
3333# - doc-build.yml,
3434# - doc-build-pdf.yml
3535#
@@ -50,7 +50,7 @@ concurrency:
5050# This baseline is transparently improved by our use of the GH Actions cache,
5151# see https://docs.docker.com/build/ci/github-actions/cache/#cache-backend-api.
5252#
53- # Jobs test-mod and test- long are only started after test-new completed;
53+ # Jobs test-long is only started after test-new completed;
5454# but the workflows doc-build.yml and doc-build-pdf.yml are started independently.
5555#
5656# - When nothing is cached and the 3 workflows are launched in parallel,
@@ -257,104 +257,6 @@ jobs:
257257 ./sage -t --long --format github -p4 ${{ steps.changed-files.outputs.doctests_all_changed_files }}
258258 shell : sh .ci/docker-exec-script.sh BUILD /sage {0}
259259
260- test-mod :
261- runs-on : ubuntu-latest
262- needs : [test-new]
263- services :
264- # https://docs.docker.com/build/ci/github-actions/local-registry/
265- registry :
266- image : registry:2
267- ports :
268- - 5000:5000
269- strategy :
270- fail-fast : false
271- matrix :
272- targets :
273- - sagemath_categories-check
274- steps :
275- - name : Maximize build disk space
276- uses : easimon/maximize-build-space@v10
277- with :
278- # need space in /var for Docker images
279- root-reserve-mb : 30000
280- remove-dotnet : true
281- remove-android : true
282- remove-haskell : true
283- remove-codeql : true
284- remove-docker-images : true
285-
286- - name : Checkout
287- id : checkout
288- uses : actions/checkout@v4
289-
290- - name : Install test prerequisites
291- # From docker.yml
292- run : |
293- sudo DEBIAN_FRONTEND=noninteractive apt-get update
294- sudo DEBIAN_FRONTEND=noninteractive apt-get install tox
295- sudo apt-get clean
296- df -h
297-
298- - name : Merge CI fixes from sagemath/sage
299- # From docker.yml
300- # This step needs to happen after the commit sha is put in DOCKER_TAG
301- # so that multi-stage builds can work correctly.
302- run : |
303- .ci/merge-fixes.sh
304- env :
305- GH_TOKEN : ${{ github.token }}
306-
307- # Building
308-
309- - name : Generate Dockerfile
310- # From docker.yml
311- run : |
312- tox -e ${{ env.TOX_ENV }}
313- cp .tox/${{ env.TOX_ENV }}/Dockerfile .
314- env :
315- # Only generate the Dockerfile, do not run 'docker build' here
316- DOCKER_TARGETS : " "
317-
318- - name : Set up Docker Buildx
319- uses : docker/setup-buildx-action@v3
320- with :
321- driver-opts : network=host
322-
323- - name : Build Docker image
324- id : image
325- uses : docker/build-push-action@v6
326- with :
327- push : true
328- load : false
329- context : .
330- tags : ${{ env.BUILD_IMAGE }}
331- target : with-targets
332- cache-from : type=gha
333- cache-to : type=gha,mode=max
334- build-args : |
335- NUMPROC=6
336- USE_MAKEFLAGS=-k V=0 SAGE_NUM_THREADS=4 --output-sync=recurse
337- TARGETS_PRE=build/make/Makefile
338- TARGETS=${{ needs.test-new.outputs.build_targets }}
339-
340- - name : Start container
341- id : container
342- if : (success() || failure())
343- run : |
344- docker run --name BUILD -dit \
345- --mount type=bind,src=$(pwd),dst=$(pwd) \
346- --workdir $(pwd) \
347- ${{ env.BUILD_IMAGE }} /bin/sh
348-
349- # Testing
350-
351- - name : Test modularized distributions
352- if : (success() || failure()) && steps.container.outcome == 'success'
353- run : |
354- export MAKE="make -j2 --output-sync=recurse" SAGE_NUM_THREADS=4
355- make V=0 tox-ensure && make ${{ matrix.targets }}
356- shell : sh .ci/docker-exec-script.sh BUILD /sage {0}
357-
358260 test-long :
359261 runs-on : ubuntu-latest
360262 needs : [test-new]
0 commit comments