Skip to content

Commit

Permalink
add python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
dovahcrow committed Mar 2, 2024
1 parent 7b31474 commit bfee731
Showing 1 changed file with 29 additions and 42 deletions.
71 changes: 29 additions & 42 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,18 @@ jobs:
container: quay.io/pypa/manylinux_2_28_x86_64
strategy:
matrix:
python-version: [[38, "3.8"], [39, "3.9"], [310, "3.10"], [311, "3.11"]]
python-version: [[39, "3.9"], [310, "3.10"], [311, "3.11"], [312, "3.12"]]
steps:
- uses: actions/checkout@v2

- name: Set python version
run: |
echo "/opt/python/cp${{ matrix.python-version[0] }}-cp${{ matrix.python-version[0] }}/bin" >> $GITHUB_PATH
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
target: aarch64-unknown-linux-gnu
default: true
- uses: dtolnay/rust-toolchain@master
toolchain: stable
targets: aarch64-unknown-linux-gnu
components: rustfmt

- uses: extractions/setup-just@v1
env:
Expand All @@ -45,7 +43,7 @@ jobs:
- uses: PyO3/maturin-action@v1
with:
rust-toolchain: stable
maturin-version: v0.14.15
maturin-version: v1.4.0
command: build
args: -m connectorx-python/Cargo.toml -i python --release --manylinux 2_28 --features integrated-auth-gssapi
env:
Expand All @@ -59,20 +57,12 @@ jobs:
- uses: PyO3/maturin-action@v1
with:
rust-toolchain: stable
maturin-version: v0.14.15
maturin-version: v1.4.0
command: build
args: -m connectorx-python/Cargo.toml -i python --release --manylinux 2_28 --features integrated-auth-gssapi
env:
SQLITE3_STATIC: 1

# - uses: PyO3/maturin-action@v1
# with:
# maturin-version: v0.14.15
# command: build
# args: -m connectorx-python/Cargo.toml --target aarch64-unknown-linux-gnu -i python --release --manylinux 2_28 --features integrated-auth-gssapi
# env:
# SQLITE3_STATIC: 1

- uses: actions/upload-artifact@v3
with:
name: "ubuntu-latest-${{ matrix.python-version[1] }}"
Expand All @@ -82,10 +72,10 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["windows-latest", "macos-11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: ["windows-latest", "macos-latest"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
- os: "macos-11"
- os: "macos-latest"
features: "--features integrated-auth-gssapi"
steps:
- uses: actions/checkout@v2
Expand All @@ -94,16 +84,15 @@ jobs:
with:
mysql-version: 8

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
default: true
- uses: dtolnay/rust-toolchain@master
toolchain: stable
targets: aarch64-unknown-linux-gnu
components: rustfmt

- uses: extractions/setup-just@v1
env:
Expand All @@ -118,7 +107,7 @@ jobs:
- uses: PyO3/maturin-action@v1
with:
rust-toolchain: stable
maturin-version: v0.14.15
maturin-version: v1.4.0
command: build
args: -m connectorx-python/Cargo.toml -i python --release ${{ matrix.features }}
env:
Expand All @@ -132,13 +121,13 @@ jobs:
- uses: PyO3/maturin-action@v1
with:
rust-toolchain: stable
maturin-version: v0.14.15
maturin-version: v1.4.0
command: build
args: -m connectorx-python/Cargo.toml -i python --release ${{ matrix.features }}
env:
SQLITE3_STATIC: 1

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: "${{ matrix.os }}-${{ matrix.python-version }}"
path: connectorx-python/target/wheels/*.whl
Expand All @@ -147,24 +136,22 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2

- uses: ankane/setup-mysql@v1
with:
mysql-version: 8

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt
target: aarch64-apple-darwin
default: true
- uses: dtolnay/rust-toolchain@master
toolchain: stable
targets: aarch64-unknown-linux-gnu
components: rustfmt

- uses: extractions/setup-just@v1
env:
Expand Down Expand Up @@ -193,13 +180,13 @@ jobs:
- uses: PyO3/maturin-action@v1
with:
rust-toolchain: stable
maturin-version: v0.14.15
maturin-version: v1.4.0
command: build
args: -m connectorx-python/Cargo.toml --target aarch64-apple-darwin -i python --release --features integrated-auth-gssapi
env:
SQLITE3_STATIC: 1

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: "macos-${{ matrix.python-version }}"
path: connectorx-python/target/wheels/*.whl
Expand All @@ -209,12 +196,12 @@ jobs:
needs: [win-and-mac, linux, apple-arm]
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
os: [macos-11, ubuntu-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
Expand Down

0 comments on commit bfee731

Please sign in to comment.