Skip to content

Commit

Permalink
chore: Update CI configuration to include max-parallel: 4 for build a…
Browse files Browse the repository at this point in the history
…nd build-pgo jobs
  • Loading branch information
carlos-rian-qd committed Aug 23, 2024
1 parent de452c4 commit cbbc234
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 22 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ on:
env:
PKG_CONFIG_ALLOW_CROSS: 1
PY_SQLX_VERSION: 0.0.1 # change when the run "release - check package version"
CI_REMOTE_RUN: 0

jobs:
rust-test:
# ignore because the pyo3 test not working
if: false
if: ${{ env.CI_REMOTE_RUN == '1' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -59,6 +60,7 @@ jobs:
build-sdist:
name: build sdist
if: ${{ env.CI_REMOTE_RUN == '1' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -87,6 +89,7 @@ jobs:

build:
name: build on ${{ matrix.platform || matrix.os }} (${{ matrix.target }} - ${{ matrix.manylinux || 'auto' }})
if: ${{ env.CI_REMOTE_RUN == '1' }}
strategy:
fail-fast: true
max-parallel: 4
Expand Down Expand Up @@ -193,7 +196,7 @@ jobs:
args: >
--release
--out dist
--interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 3.13' }} ${{ matrix.extra-build-args }}
--interpreter ${{ matrix.interpreter || '3.8 3.9 3.10 3.11 3.12 3.13' }}
rust-toolchain: stable
sccache: true
docker-options: -e CI
Expand All @@ -210,31 +213,22 @@ jobs:
build-pgo:
name: build pgo-optimized on ${{ matrix.platform || matrix.os }} (${{ matrix.interpreter}} - ${{ matrix.target }} - ${{ matrix.manylinux || 'auto' }})
strategy:
max-parallel: 4
fail-fast: true
matrix:
os: [linux, windows, macos]
interpreter: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
os: [ubuntu, windows]
target: [x86_64]
manylinux: [auto]
interpreter: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
include:
# standard runners with override for macos arm
- os: linux
runs-on: ubuntu-latest
- os: ubuntu
platform: linux
- os: windows
ls: dir
runs-on: windows-latest
- os: macos
runs-on: macos-latest-xlarge
exclude:
# macos arm only supported from 3.10 and up
- os: macos
interpreter: '3.8'
- os: macos
interpreter: '3.9'

runs-on: ${{ matrix.runs-on }}
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4

- name: set up python
uses: actions/setup-python@v5
with:
Expand All @@ -247,7 +241,6 @@ jobs:
with:
components: llvm-tools


- run: pip install -U toml httpx twine

- name: production - check package version
Expand All @@ -268,9 +261,8 @@ jobs:
args: >
--release
--out dist
--interpreter ${{ matrix.maturin-interpreter || matrix.interpreter }}
--interpreter ${{ matrix.interpreter }}
rust-toolchain: stable
sccache: true
docker-options: -e CI

- run: ${{ matrix.ls || 'ls -lh' }} dist/
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Source = "https://github.com/carlos-rian/pysqlx-core"

[tool.maturin]
bindings = "pyo3"
features = ["pyo3/extension-module"]


[tool.black]
Expand Down

0 comments on commit cbbc234

Please sign in to comment.