Skip to content

Commit e864b3f

Browse files
fixup! pythongh-127432: Add CI job to cross build Python
1 parent a9d74a4 commit e864b3f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -525,28 +525,30 @@ jobs:
525525

526526
with-python-build-linux:
527527
runs-on: ubuntu-latest
528+
env:
529+
BUILD_DIR: ${{ github.workspace }}/build
528530
steps:
529531
- uses: actions/checkout@v4
530532
with:
531533
persist-credentials: false
532534
- name: Install Dependencies
533535
run: sudo ./.github/workflows/posix-deps-apt.sh
534536
- name: Configure host build
535-
run: ./configure --prefix="$PWD/../build/host-python"
537+
run: ./configure --prefix="$BUILD_DIR/host-python"
536538
- name: Install host Python
537539
run: make -j8 install
538540
- name: Run test subset with host build
539541
run: |
540-
"$PWD/../build/host-python/bin/python3" -m test test_sysconfig test_site test_embed
542+
"$BUILD_DIR/host-python/bin/python3" -m test test_sysconfig test_site test_embed
541543
- name: Clean up build
542-
run: make -j clean
544+
run: make -j8 clean
543545
- name: Configure cross build
544-
run: ./configure --prefix="$PWD/../build/cross-python" --with-build-python="$PWD/../build/host-python/bin/python3"
546+
run: ./configure --prefix="$BUILD_DIR/cross-python" --with-build-python="$BUILD_DIR/host-python/bin/python3"
545547
- name: Install cross Python
546548
run: make -j8 install
547549
- name: Run test subset with host build
548550
run: |
549-
"$PWD/../build/cross-python/bin/python3" -m test test_sysconfig test_site test_embed
551+
"$BUILD_DIR/cross-python/bin/python3" -m test test_sysconfig test_site test_embed
550552
551553
# CIFuzz job based on https://google.github.io/oss-fuzz/getting-started/continuous-integration/
552554
cifuzz:

0 commit comments

Comments
 (0)