Skip to content

Commit 2564ce8

Browse files
committed
CI: cleanup Sage workflow definition
1 parent 7c09612 commit 2564ce8

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

.github/workflows/sage.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,19 @@ jobs:
7878
python3 -m pip install --user build
7979
- name: Run make dist, prepare upstream artifact
8080
run: |
81-
(cd build/pkgs/${{ env.SPKG }}/src && python3 -m build --sdist .) \
82-
&& mkdir -p upstream && cp build/pkgs/${{ env.SPKG }}/src/dist/*.tar.gz upstream/${{ env.SPKG }}-git.tar.gz \
83-
&& echo "sage-package create ${{ env.SPKG }} --version git --tarball ${{ env.SPKG }}-git.tar.gz --type=standard" > upstream/update-pkgs.sh \
84-
&& if [ -n "${{ env.REMOVE_PATCHES }}" ]; then echo "(cd ../build/pkgs/${{ env.SPKG }}/patches && rm -f ${{ env.REMOVE_PATCHES }}; :)" >> upstream/update-pkgs.sh; fi \
85-
&& echo "sed -i.bak \"/pushdef.*LT_VERSION/s/3[0-9.]*/4/\" ../build/pkgs/python3/spkg-configure.m4" >> upstream/update-pkgs.sh \
86-
&& echo "sed -i.bak \"/export.*proxy/d\" ../build/bin/sage-spkg" >> upstream/update-pkgs.sh \
87-
&& ls -l upstream/
81+
pushd build/pkgs/${{ env.SPKG }}/src
82+
python3 -m build --sdist .
83+
popd
84+
mkdir -p upstream
85+
cp build/pkgs/${{ env.SPKG }}/src/dist/*.tar.gz upstream/${{ env.SPKG }}-git.tar.gz
86+
echo "sage-package create ${{ env.SPKG }} --version git --tarball ${{ env.SPKG }}-git.tar.gz --type=standard" > upstream/update-pkgs.sh
87+
if [ -n "${{ env.REMOVE_PATCHES }}" ]
88+
then
89+
echo "(cd ../build/pkgs/${{ env.SPKG }}/patches rm -f ${{ env.REMOVE_PATCHES }}; :)" >> upstream/update-pkgs.sh
90+
fi
91+
echo "sed -i.bak \"/pushdef.*LT_VERSION/s/3[0-9.]*/4/\" ../build/pkgs/python3/spkg-configure.m4" >> upstream/update-pkgs.sh
92+
echo "sed -i.bak \"/export.*proxy/d\" ../build/bin/sage-spkg" >> upstream/update-pkgs.sh
93+
ls -l upstream
8894
- name: System factors for pull requests
8995
# See https://github.com/sagemath/sage/blob/develop/.github/workflows/docker.yml for available systems
9096
id: pull-request-systems
@@ -122,14 +128,13 @@ jobs:
122128
# Use branch u/mkoeppe/numpy_1_23_x__scipy_1_9_x for a fix for uppercase github repo names (FFY00)
123129
uses: sagemath/sagetrac-mirror/.github/workflows/docker.yml@u/mkoeppe/numpy_1_23_x__scipy_1_9_x
124130
with:
125-
# Reduced list of systems to test: Only those that bring python >= 3.8
126-
# Full list at https://github.com/sagemath/sage/blob/develop/.github/workflows/docker.yml
127-
# See also https://github.com/sagemath/sage/blob/develop/tox.ini
128131
tox_system_factors: ${{ needs.build.outputs.systems }}
129132
tox_packages_factors: >-
130133
["minimal-develop",]
131-
# Extra packages to install as system packages
132-
extra_sage_packages: "liblzma bzip2 libffi libpng python3 ninja_build"
134+
# Extra system packages to install. See available packages at
135+
# https://github.com/sagemath/sage/tree/develop/build/pkgs
136+
# liblzma, bzip2, and libffi are python3 dependencies.
137+
extra_sage_packages: "liblzma bzip2 libffi python3 ninja_build"
133138
# Sage distribution packages to build
134139
targets: SAGE_CHECK=no SAGE_CHECK_PACKAGES="meson_python" python_build meson_python
135140
# Standard setting: Test the current beta release of Sage:

0 commit comments

Comments
 (0)