Skip to content

Commit

Permalink
.github/workflows/dist.yml: Omit huge packages, do not upload non-dis…
Browse files Browse the repository at this point in the history
…tributable tarballs
  • Loading branch information
mkoeppe committed Apr 7, 2024
1 parent b3dd308 commit 1b428f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- name: make download (--disable-download-from-upstream-url)
id: make_download
run: |
make -k download
make -k download DOWNLOAD_PACKAGES=":all: --no-file huge"
env:
MAKE: make -j8
- name: Reconfigure with --enable-download-from-upstream-url
Expand All @@ -61,9 +61,13 @@ jobs:
- name: make download (--enable-download-from-upstream-url)
if: (success() || failure()) && steps.make_download.outcome != 'success'
run: |
make -k download
make -k download DOWNLOAD_PACKAGES=":all: --no-file huge"
env:
MAKE: make -j8
- name: Remove what cannot be distributed
if: success() || failure()
run: |
rm -f upstream/*do-not-distribute*
- uses: actions/upload-artifact@v3
if: success() || failure()
with:
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,11 @@ buildbot-python3:
$(MAKE)

# Preemptively download all source tarballs of normal packages.
DOWNLOAD_PACKAGES=:all:
download:
export SAGE_ROOT=$$(pwd) && \
export PATH=$$SAGE_ROOT/build/bin:$$PATH && \
sage-package download :all:
sage-package download $(DOWNLOAD_PACKAGES)

dist: build/make/Makefile
./sage --sdist
Expand Down

0 comments on commit 1b428f1

Please sign in to comment.