From 399f8cd824720e2bcd5d3b3970c9df1ab7447d56 Mon Sep 17 00:00:00 2001 From: Giovanni Barillari Date: Fri, 13 Dec 2024 18:12:25 +0100 Subject: [PATCH] temp: only PGO builds --- .github/workflows/build.yml | 124 ++++++++++++++++++------------------ 1 file changed, 62 insertions(+), 62 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 73013c8..6240599 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,68 +6,68 @@ env: PY_ALL: 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10 jobs: - wheels: - name: wheel ${{ matrix.platform || matrix.os }}(${{ matrix.target }}) - ${{ matrix.manylinux || 'auto' }} - strategy: - fail-fast: false - matrix: - os: [ubuntu, macos, windows] - target: [x86_64, aarch64] - manylinux: [auto] - include: - - os: ubuntu - platform: linux - - os: ubuntu - platform: linux - target: x86_64 - manylinux: auto - interpreter: pypy3.9 pypy3.10 - - os: macos - target: x86_64 - interpreter: pypy3.9 pypy3.10 - - os: macos - target: aarch64 - interpreter: pypy3.9 pypy3.10 - - os: ubuntu - platform: linux - target: aarch64 - container: messense/manylinux_2_24-cross:aarch64 - - os: ubuntu - platform: linux - target: x86_64 - manylinux: musllinux_1_1 - - os: ubuntu - platform: linux - target: aarch64 - manylinux: musllinux_1_1 - - os: windows - target: x86_64 - interpreter: pypy3.9 pypy3.10 - exclude: - - os: windows - target: aarch64 + # wheels: + # name: wheel ${{ matrix.platform || matrix.os }}(${{ matrix.target }}) - ${{ matrix.manylinux || 'auto' }} + # strategy: + # fail-fast: false + # matrix: + # os: [ubuntu, macos, windows] + # target: [x86_64, aarch64] + # manylinux: [auto] + # include: + # - os: ubuntu + # platform: linux + # - os: ubuntu + # platform: linux + # target: x86_64 + # manylinux: auto + # interpreter: pypy3.9 pypy3.10 + # - os: macos + # target: x86_64 + # interpreter: pypy3.9 pypy3.10 + # - os: macos + # target: aarch64 + # interpreter: pypy3.9 pypy3.10 + # - os: ubuntu + # platform: linux + # target: aarch64 + # container: messense/manylinux_2_24-cross:aarch64 + # - os: ubuntu + # platform: linux + # target: x86_64 + # manylinux: musllinux_1_1 + # - os: ubuntu + # platform: linux + # target: aarch64 + # manylinux: musllinux_1_1 + # - os: windows + # target: x86_64 + # interpreter: pypy3.9 pypy3.10 + # exclude: + # - os: windows + # target: aarch64 - runs-on: ${{ matrix.os }}-latest - steps: - - uses: actions/checkout@v4 - - name: Set jemalloc for aarch64 Linux - if: matrix.target == 'aarch64' && matrix.os == 'ubuntu' - run: | - echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV - - uses: pyo3/maturin-action@v1 - with: - rust-toolchain: stable - command: build - args: --release --out dist --interpreter ${{ matrix.interpreter || env.PY_ALL }} - target: ${{ matrix.target }} - manylinux: ${{ matrix.manylinux || 'auto' }} - container: ${{ matrix.container }} - docker-options: -e CI - - name: Upload wheels - uses: actions/upload-artifact@v3 - with: - name: dist - path: dist + # runs-on: ${{ matrix.os }}-latest + # steps: + # - uses: actions/checkout@v4 + # - name: Set jemalloc for aarch64 Linux + # if: matrix.target == 'aarch64' && matrix.os == 'ubuntu' + # run: | + # echo "JEMALLOC_SYS_WITH_LG_PAGE=16" >> $GITHUB_ENV + # - uses: pyo3/maturin-action@v1 + # with: + # rust-toolchain: stable + # command: build + # args: --release --out dist --interpreter ${{ matrix.interpreter || env.PY_ALL }} + # target: ${{ matrix.target }} + # manylinux: ${{ matrix.manylinux || 'auto' }} + # container: ${{ matrix.container }} + # docker-options: -e CI + # - name: Upload wheels + # uses: actions/upload-artifact@v3 + # with: + # name: dist + # path: dist wheels-pgo: name: pgo-wheel ${{ matrix.platform || matrix.os }} (${{ matrix.interpreter}}) @@ -118,7 +118,7 @@ jobs: uv venv .venv uv pip install -r .github/workflows/_pgo_deps.txt uv pip install granian --no-index --no-deps --find-links pgo_wheel --force-reinstall - PGO_RUN=y LLVM_PROFILE_FILE=${{ github.workspace }}/profdata/%m_%p.profraw uv run pytest tests + PGO_RUN=y LLVM_PROFILE_FILE=${{ github.workspace }}/profdata/%m_%p.profraw uv run --no-sync pytest tests - name: merge PGO data run: ${{ env.LLVM_PROFDATA }} merge --failure-mode=all -o ${{ github.workspace }}/merged.profdata ${{ github.workspace }}/profdata - name: Build PGO wheel