Skip to content

Commit

Permalink
Add python source build
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicField committed Oct 15, 2024
1 parent e4b55d4 commit 842e9ef
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
6 changes: 5 additions & 1 deletion .github/actions/build-python-from-source/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,35 +28,35 @@ 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'
# build-from-source: false
# 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 }}

Expand Down

0 comments on commit 842e9ef

Please sign in to comment.