Skip to content

[CI] Split build dependencies into own job on Windows#984

Open
jjhelmus wants to merge 8 commits intoastral-sh:mainfrom
jjhelmus:deps_ci
Open

[CI] Split build dependencies into own job on Windows#984
jjhelmus wants to merge 8 commits intoastral-sh:mainfrom
jjhelmus:deps_ci

Conversation

@jjhelmus
Copy link
Contributor

No description provided.

@jjhelmus jjhelmus added platform:windows Specific to the Windows platform python:3.12 arch:x86_64 labels Feb 20, 2026
persist-credentials: false

- name: Install Cygwin Environment
uses: cygwin/cygwin-install-action@f2009323764960f80959895c7bc3bb30210afe4d # v6

Check warning

Code scanning / zizmor

detects commit SHAs that don't match their version comment tags Warning

detects commit SHAs that don't match their version comment tags
@jjhelmus
Copy link
Contributor Author

This would be more useful if a matrix jobs could depend on a specific matrix job rather than the entire jobs to finish. In this way to x86-64+PGO Python builds could start as soon as the x86-64+PGO build-deps job finished rather than waiting for all matrix elements of build-deps to finish. This does not seem to be supported in GitHub Action but has been requested, https://github.com/orgs/community/discussions/42335.

@zanieb
Copy link
Member

zanieb commented Feb 20, 2026

This would be more useful if a matrix jobs could depend on a specific matrix job rather than the entire jobs to finish. In this way to x86-64+PGO Python builds could start as soon as the x86-64+PGO build-deps job finished rather than waiting for all matrix elements of build-deps to finish. This does not seem to be supported in GitHub Action but has been requested, https://github.com/orgs/community/discussions/42335.

Hm that's indeed annoying. I guess you could also generate the workflow file.

Have separate jobs for build-{python,dependencies} for x86_64, i686 and
aarch64 to allow the build-python jobs to start when the corresponding
build-dependencies job finishes.
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
with:
enable-cache: false

Check warning

Code scanning / zizmor

detects commit SHAs that don't match their version comment tags Warning

detects commit SHAs that don't match their version comment tags
uses: astral-sh/setup-uv@1e862dfacbd1d6d858c55d9b792c756523627244 # v7.1.4
with:
enable-cache: false

Check warning

Code scanning / zizmor

detects commit SHAs that don't match their version comment tags Warning

detects commit SHAs that don't match their version comment tags
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\%MATRIX_VCVARS%"
)
uv run build.py --only-deps --sh c:\cygwin\bin\sh.exe --options %MATRIX_BUILD_OPTIONS% --vs %MATRIX_VS_VERSION%
env:

Check warning

Code scanning / zizmor

usage of GitHub Actions misfeatures Warning

usage of GitHub Actions misfeatures
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\%MATRIX_VCVARS%"
)
uv run build.py --only-deps --sh c:\cygwin\bin\sh.exe --options %MATRIX_BUILD_OPTIONS% --vs %MATRIX_VS_VERSION%
env:

Check warning

Code scanning / zizmor

usage of GitHub Actions misfeatures Warning

usage of GitHub Actions misfeatures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform:windows Specific to the Windows platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants