Skip to content

Commit 8ee6738

Browse files
author
Matthias Koeppe
committed
.github/workflows/dist.yml (release_dist): First try without upstream_url, then fall back to with
1 parent 3e9dddb commit 8ee6738

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/dist.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ jobs:
1818

1919
release_dist:
2020

21-
# This job, in contrast to "dist" in ci-macos.yml,
22-
# does not use "configure --enable-download-from-upstream-url"
23-
# (the default since #32390).
21+
# This job first checks whether "configure --enable-download-from-upstream-url"
22+
# (the default since #32390) is needed.
2423
#
2524
# In this way, we check that all necessary package tarballs
2625
# have already been uploaded to the Sage server at the time
@@ -37,12 +36,19 @@ jobs:
3736
run: |
3837
sudo DEBIAN_FRONTEND=noninteractive apt-get update
3938
sudo DEBIAN_FRONTEND=noninteractive apt-get install $(build/bin/sage-get-system-packages debian _bootstrap)
40-
- name: make dist
39+
- name: make dist (--disable-download-from-upstream-url)
4140
run: |
42-
./bootstrap -D && ./configure && make dist
41+
./bootstrap -D && ./configure --disable-download-from-upstream-url && make dist
42+
env:
43+
MAKE: make -j8
44+
- name: make dist (--enable-download-from-upstream-url)
45+
if: failure()
46+
run: |
47+
./configure && make dist
4348
env:
4449
MAKE: make -j8
4550
- uses: actions/upload-artifact@v3
51+
if: success() || failure()
4652
with:
4753
path: |
4854
dist/*.tar.gz
@@ -53,7 +59,7 @@ jobs:
5359

5460
needs: release_dist
5561
runs-on: ubuntu-latest
56-
if: github.repository == 'sagemath/sage' && startsWith(github.ref, 'refs/tags/') && ! contains(github.ref, 'beta') && !contains(github.ref, 'rc')
62+
if: (success() || failure()) && github.repository == 'sagemath/sage' && startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'beta') && !contains(github.ref, 'rc')
5763
steps:
5864
- uses: actions/download-artifact@v3
5965
with:

0 commit comments

Comments
 (0)