Skip to content

Commit 0b7e125

Browse files
author
Matthias Koeppe
committed
.github/workflows/ci-linux.yml: Run ubuntu-focal-standard without waiting for other platforms
1 parent 2f1a76d commit 0b7e125

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci-linux.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,46 @@ permissions:
3434

3535
jobs:
3636

37+
# The default platform used by build.yml etc.
38+
39+
default-pre:
40+
uses: ./.github/workflows/docker.yml
41+
with:
42+
# Build from scratch
43+
docker_targets: "with-system-packages configured with-targets-pre"
44+
# FIXME: duplicated from env.TARGETS
45+
targets_pre: all-sage-local
46+
tox_system_factors: >-
47+
["ubuntu-focal"]
48+
tox_packages_factors: >-
49+
["standard"]
50+
docker_push_repository: ghcr.io/${{ github.repository }}/
51+
52+
default:
53+
if: ${{ success() || failure() }}
54+
needs: [default-pre]
55+
uses: ./.github/workflows/docker.yml
56+
with:
57+
# Build incrementally from previous stage (pre)
58+
incremental: true
59+
free_disk_space: true
60+
from_docker_repository: ghcr.io/${{ github.repository }}/
61+
from_docker_target: "with-targets-pre"
62+
docker_targets: "with-targets with-targets-optional"
63+
# FIXME: duplicated from env.TARGETS
64+
targets: build doc-html
65+
targets_optional: ptest
66+
tox_system_factors: >-
67+
["ubuntu-focal"]
68+
tox_packages_factors: >-
69+
["standard"]
70+
docker_push_repository: ghcr.io/${{ github.repository }}/
71+
72+
# All platforms. This duplicates the default platform, but why not,
73+
# it makes it more robust regarding random timeouts.
74+
3775
standard-pre:
76+
if: ${{ success() || failure() }}
3877
uses: ./.github/workflows/docker.yml
3978
with:
4079
# Build from scratch

0 commit comments

Comments
 (0)