Skip to content

Commit 4928f92

Browse files
committed
.github/workflows/ci-sage.yml: Use 'git archive' instead of 'build -s'
1 parent 430b8e5 commit 4928f92

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci-sage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ on:
4444

4545
env:
4646
# Ubuntu packages to install so that the project's "make dist" can succeed
47-
DIST_PREREQ: libmpfr-dev
47+
DIST_PREREQ:
4848
# Name of this project in the Sage distribution
4949
SPKG: python_flint
5050
# Standard setting: Test the current beta release of Sage:
@@ -70,8 +70,8 @@ jobs:
7070
- run: pip install build
7171
- name: Run make dist, prepare upstream artifact
7272
run: |
73-
(cd build/pkgs/${{ env.SPKG }}/src && python -m build --sdist) \
74-
&& mkdir -p upstream && cp build/pkgs/${{ env.SPKG }}/src/dist/*.tar.gz upstream/${{ env.SPKG }}-git.tar.gz \
73+
(cd build/pkgs/${{ env.SPKG }}/src && git archive --format=tar.gz --prefix=${{ env.SPKG }}-git/ HEAD > ${{ env.SPKG }}-git.tar.gz) \
74+
&& mkdir -p upstream && cp build/pkgs/${{ env.SPKG }}/src/*.tar.gz upstream/${{ env.SPKG }}-git.tar.gz \
7575
&& echo "sage-package create ${{ env.SPKG }} --version git --tarball ${{ env.SPKG }}-git.tar.gz --type=standard" > upstream/update-pkgs.sh \
7676
&& if [ -n "${{ env.REMOVE_PATCHES }}" ]; then echo "(cd ../build/pkgs/${{ env.SPKG }}/patches && rm -f ${{ env.REMOVE_PATCHES }}; :)" >> upstream/update-pkgs.sh; fi \
7777
&& ls -l upstream/

0 commit comments

Comments
 (0)