Skip to content

Commit f8050b8

Browse files
squash! pythongh-127432: Add CI job to cross build Python
Make use of some GHA bits used in other build jobs
1 parent ed9aceb commit f8050b8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/build.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -523,9 +523,21 @@ jobs:
523523
suppressions_path: Tools/tsan/suppressions_free_threading.txt
524524
tsan_logs_artifact_name: tsan-logs-free-threading
525525

526-
with-python-build-linux:
526+
cross-build-linux:
527+
name: Cross build Linux
527528
runs-on: ubuntu-latest
529+
needs: check_source
530+
if: needs.check_source.outputs.run_tests == 'true'
528531
steps:
532+
- name: Runner image version
533+
run: echo "IMAGE_VERSION=${ImageVersion}" >> "$GITHUB_ENV"
534+
- name: Restore config.cache
535+
uses: actions/cache@v4
536+
with:
537+
path: config.cache
538+
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
539+
- name: Register gcc problem matcher
540+
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
529541
- name: Set build dir
530542
run:
531543
echo "BUILD_DIR=$(realpath ${{ github.workspace }}/../build)" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)