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 e5b76a2 commit 273dd47
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
4 changes: 4 additions & 0 deletions .github/actions/build-python-from-source/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ runs:
elif [ "${{ runner.os }}" = "Windows" ]; then
prefix="C:/Python/${{ inputs.python-version }}"
fi
# Work around the sys.prefix issue in macOS builds.
if [ "${{ runner.os }}" = "macOS" ]; then
configure_options+=" --enable-shared"
fi
# Build it!
if [ "${{ runner.os }}" != "Windows" ]; then
./configure --prefix=$prefix CFLAGS="-O3" CXXFLAGS="-O3" $configure_options
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
#- os: ubuntu-latest
# python-version: '3.12.7'
# build-from-source: false
- os: ubuntu-latest
python-version: '3.13.0'
build-from-source: false
#- os: ubuntu-latest
# python-version: '3.13.0'
# build-from-source: false
#- os: windows-latest
# python-version: '3.13.0'
# build-from-source: false
Expand All @@ -41,22 +41,22 @@ jobs:
# 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.0'
build-from-source: true
nogil: true
- os: windows-latest
python-version: 'v3.13.0'
build-from-source: true
nogil: true
#- os: ubuntu-latest
# 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: '3.14.0-alpha.0'
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 273dd47

Please sign in to comment.