From 842e9ef08e218b28da4a6a179d8467c99c2f210d Mon Sep 17 00:00:00 2001 From: Alex Turner Date: Tue, 15 Oct 2024 03:06:15 -0700 Subject: [PATCH] Add python source build --- .../build-python-from-source/action.yml | 6 +++- .github/workflows/build.yml | 32 +++++++++---------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/.github/actions/build-python-from-source/action.yml b/.github/actions/build-python-from-source/action.yml index 9ee9835..2291659 100644 --- a/.github/actions/build-python-from-source/action.yml +++ b/.github/actions/build-python-from-source/action.yml @@ -42,7 +42,11 @@ runs: run: | git clone https://github.com/python/cpython.git cd cpython - git checkout ${{ inputs.python-version }} + if [[ ${{ inputs.python-version }} == *"alpha"* ]]; then + git checkout main + else + git checkout ${{ inputs.python-version }} + fi # Configure and build Python based on the OS and the 'nogil' input. - name: Configure and build Python diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aa65190..54b3979 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,13 +28,13 @@ jobs: # python-version: '3.12.7' # build-from-source: false - os: ubuntu-latest - python-version: '3.13.0-rc.3' + python-version: '3.13.0' build-from-source: false #- os: windows-latest - # python-version: '3.13.0-rc.3' + # python-version: '3.13.0' # build-from-source: false #- os: macos-latest - # python-version: '3.13.0-rc.3' + # python-version: '3.13.0' # build-from-source: false #- os: ubuntu-latest # python-version: '3.14.0-alpha.0' @@ -42,21 +42,21 @@ jobs: # Add below those versions we want as Free Threaded releases. # For these you will need the tag name see: https://github.com/python/cpython/tags - os: ubuntu-latest - python-version: 'v3.13.0rc3' + python-version: 'v3.13.0' + build-from-source: true + nogil: true + - os: windows-latest + python-version: 'v3.13.0' + build-from-source: true + nogil: true + - os: macos-latest + python-version: 'v3.13.0' + build-from-source: true + nogil: true + - os: ubuntu-latest + python-version: '' build-from-source: true nogil: true - #- os: windows-latest - # python-version: '3.13.0-rc.3' - # build-from-source: true - # nogil: true - #- os: macos-latest - # python-version: '3.13.0-rc.3' - # build-from-source: true - # nogil: true - #- os: ubuntu-latest - # python-version: '3.14.0-alpha.0' - # build-from-source: true - # nogil: true runs-on: ${{ matrix.os }}