Skip to content

Commit 68b151f

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

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -523,15 +523,27 @@ 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:
529-
- name: Set build dir
530-
run:
531-
echo "BUILD_DIR=$(realpath ${{ github.workspace }}/../build)" >> "$GITHUB_ENV"
532532
- uses: actions/checkout@v4
533533
with:
534534
persist-credentials: false
535+
- name: Runner image version
536+
run: echo "IMAGE_VERSION=${ImageVersion}" >> "$GITHUB_ENV"
537+
- name: Restore config.cache
538+
uses: actions/cache@v4
539+
with:
540+
path: config.cache
541+
key: ${{ github.job }}-${{ runner.os }}-${{ env.IMAGE_VERSION }}-${{ needs.check_source.outputs.config_hash }}
542+
- name: Register gcc problem matcher
543+
run: echo "::add-matcher::.github/problem-matchers/gcc.json"
544+
- name: Set build dir
545+
run:
546+
echo "BUILD_DIR=$(realpath ${{ github.workspace }}/../build)" >> "$GITHUB_ENV"
535547
- name: Install Dependencies
536548
run: sudo ./.github/workflows/posix-deps-apt.sh
537549
- name: Configure host build

0 commit comments

Comments
 (0)