Skip to content

Commit

Permalink
Strip executables to avoid out of runner space
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Mar 5, 2025
1 parent 4427869 commit e7ef2ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .ci/write-dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ ARG USE_MAKEFLAGS="-k V=0"
ENV SAGE_CHECK=warn
ENV SAGE_CHECK_PACKAGES="!cython,!python3,!cysignals,!linbox,!ppl,!cmake,!rpy2,!sage_sws2rst"
ARG TARGETS_OPTIONAL="ptest"
# Strip executables in local, src, pkgs to reduce image size
RUN LC_ALL=C find local src pkgs -type f -exec strip '{}' ';' 2>&1 | grep -v "file format not recognized" || true
$RUN$CHECK_STATUS_THEN make SAGE_SPKG="sage-spkg -y -o" \${USE_MAKEFLAGS} \${TARGETS_OPTIONAL} || echo "(error ignored)"$ENDRUN$THEN_SAVE_STATUS
#:end:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,10 @@ jobs:
["maximal"]
free_disk_space: true
incremental: false
docker_targets: "with-system-packages configured with-targets-pre with-targets"
docker_targets: "with-system-packages configured with-targets-pre with-targets with-targets-optional"
targets_pre: all-sage-local
targets: build doc-html
targets_optional: ptest
docker_push_repository: ghcr.io/${{ github.repository }}/

optional:
Expand Down

0 comments on commit e7ef2ac

Please sign in to comment.