Skip to content

Commit

Permalink
fixup! DEBUG reduce pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
renefritze committed Nov 16, 2022
1 parent 401de7f commit 18cb31b
Showing 1 changed file with 1 addition and 89 deletions.
90 changes: 1 addition & 89 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,95 +24,7 @@ env:
USE_QEMU: ${{ github.event.inputs.use_qemu == 'true' }}

jobs:
build-wheels:
name: Build wheels on ${{ matrix.os }} (arch=${{ matrix.arch }})
runs-on: ${{ matrix.os }}

strategy:
matrix:
include:
- os: ubuntu-22.04
arch: "x86_64"
use_qemu: false
skip: "*manylinux*"
- os: ubuntu-22.04
arch: "x86_64"
use_qemu: false
skip: "*musllinux*"
- os: ubuntu-22.04
arch: "i686"
use_qemu: false
skip: "*manylinux*"
- os: ubuntu-22.04
arch: "i686"
use_qemu: false
skip: "*musllinux*"
# These take too long to build on Github
#- os: ubuntu-20.04
#arch: "aarch64"
#use_qemu: true
#- os: ubuntu-20.04
#arch: "ppc64le"
#use_qemu: true
#- os: ubuntu-20.04
#arch: "s390x"
#use_qemu: true
- os: windows-2022
arch: "AMD64"
use_qemu: false
skip: ""
- os: windows-2022
arch: "x86"
use_qemu: false
skip: ""
- os: macos-12
arch: "universal2"
use_qemu: false
skip: ""

steps:
- uses: actions/checkout@v3
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU)

- name: Support long paths
if: runner.os == 'Windows' && ((!matrix.use_qemu) || fromJSON(env.USE_QEMU))
run: git config --system core.longpaths true

- name: Export macOS SDKROOT
if: runner.os == 'macOS'
run: echo SDKROOT=$(xcrun --sdk macosx --show-sdk-path) >> $GITHUB_ENV

- name: Override LLVM version (${{ github.event.inputs.llvm_version }})
if: github.event.inputs.llvm_version
run: |
echo "set(CLANG_TIDY_VERSION ${{ github.event.inputs.llvm_version }})" > clang-tidy_version.cmake
echo "set(CLANG_TIDY_WHEEL_VERSION ${{ github.event.inputs.wheel_version }})" >> clang-tidy_version.cmake
- name: Set up QEMU
uses: docker/[email protected]
if: runner.os == 'Linux' && ((matrix.use_qemu) && fromJSON(env.USE_QEMU))

- name: Build wheels
uses: pypa/[email protected]
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
env:
CIBW_ARCHS: "${{ matrix.arch }}"
CIBW_BEFORE_TEST: rm -rf {package}/clang_tidy
CIBW_TEST_SKIP: "*linux*"
CIBW_SKIP: "${{matrix.skip}}"
# clang-tidy simply does not want to cooperate with the github linux image
- name: Test Linux Wheel
if: runner.os == 'Linux' && !(matrix.use_qemu) && matrix.arch == 'x86_64'
run: |
if [[ "${{matrix.skip}}" == "*manylinux*" ]] ; then
docker build --build-arg BASEOS=alpine3.16 --build-arg PLATFORM=musllinux -f .github/workflows/Dockerfile .
else
docker build --build-arg BASEOS=slim-bullseye --build-arg PLATFORM=manylinux -f .github/workflows/Dockerfile .
fi
- uses: actions/upload-artifact@v3
if: (!matrix.use_qemu) || fromJSON(env.USE_QEMU)
with:
path: ./wheelhouse/*.whl

build-sdist:
name: Build source distribution
Expand Down Expand Up @@ -168,7 +80,7 @@ jobs:

upload_pypi:
name: Upload to PyPI
needs: [build-wheels, build-sdist, test-sdist]
needs: [test-sdist]
runs-on: ubuntu-22.04
if: github.repository_owner == 'ssciwr'

Expand Down

0 comments on commit 18cb31b

Please sign in to comment.