Skip to content

Commit

Permalink
ci: add new linux build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Kijewski committed Oct 8, 2024
1 parent 66d7e17 commit 63746f6
Show file tree
Hide file tree
Showing 2 changed files with 134 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/actions/build_linux_v2_setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build Linux v2

runs:
using: composite
steps:
- name: Cache pip
uses: actions/cache@v4
with:
key: cache--${{ hashFiles('./requirements-dev.txt') }}
path: ~/.cache/pip

- run: python -m pip install -U pip wheel setuptools
shell: bash

- run: python -m pip install -Ur requirements-dev.txt
shell: bash

- run: python -m pip install -U 'cibuildwheel==2.*'
shell: bash

- run: make prepare
shell: bash
112 changes: 112 additions & 0 deletions .github/workflows/build_linux_v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Build Wheels (Linux)

on:
workflow_dispatch:
inputs: {}

jobs:
linux-x86_64:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/build_linux_v2_setup
- run: python -m cibuildwheel --output-dir wheelhouse
shell: bash
env:
CIBW_BUILD_FRONTEND: build
CIBW_SKIP: 'cp27-* pp*'
CIBW_MANYLINUX_X86_64_IMAGE: dockcross/manylinux2014-x64
CIBW_PLATFORM: linux
CIBW_ARCHS: x86_64
CIBW_FREE_THREADED_SUPPORT: 'true'
- uses: actions/upload-artifact@v4
with:
name: linux-x86_64
path: ./wheelhouse

linux-i686:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/build_linux_v2_setup
- run: python -m cibuildwheel --output-dir wheelhouse
shell: bash
env:
CIBW_BUILD_FRONTEND: build
CIBW_SKIP: 'cp27-* pp*'
CIBW_MANYLINUX_I686_IMAGE: dockcross/manylinux2014-x86
CIBW_PLATFORM: linux
CIBW_ARCHS: i686
CIBW_FREE_THREADED_SUPPORT: 'true'
- uses: actions/upload-artifact@v4
with:
name: linux-i686
path: ./wheelhouse

linux-aarch64:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/build_linux_v2_setup
- run: python -m cibuildwheel --output-dir wheelhouse
shell: bash
env:
CIBW_BUILD_FRONTEND: build
CIBW_SKIP: 'cp27-* pp*'
CIBW_MANYLINUX_AARCH64_IMAGE: dockcross/linux-arm64-lts
CIBW_MUSLLINUX_AARCH64_IMAGE: dockcross/linux-arm64-musl
CIBW_PLATFORM: linux
CIBW_ARCHS: aarch64
CIBW_FREE_THREADED_SUPPORT: 'true'
- uses: actions/upload-artifact@v4
with:
name: linux-aarch64
path: ./wheelhouse

linux-ppc64le:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/build_linux_v2_setup
- run: python -m cibuildwheel --output-dir wheelhouse
shell: bash
env:
CIBW_BUILD_FRONTEND: build
CIBW_SKIP: 'cp27-* pp* *musl*'
CIBW_MANYLINUX_PPC64LE_IMAGE: dockcross/linux-ppc64le-lts
CIBW_PLATFORM: linux
CIBW_ARCHS: ppc64le
CIBW_FREE_THREADED_SUPPORT: 'true'
- uses: actions/upload-artifact@v4
with:
name: linux-ppc64le
path: ./wheelhouse

linux-armv7l:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: ./.github/actions/build_linux_v2_setup
- run: python -m cibuildwheel --output-dir wheelhouse
shell: bash
env:
CIBW_BUILD_FRONTEND: build
CIBW_SKIP: 'cp27-* pp*'
CIBW_MUSLLINUX_ARMV7L_IMAGE: dockcross/linux-armv7l-musl
CIBW_PLATFORM: linux
CIBW_ARCHS: armv7l
CIBW_FREE_THREADED_SUPPORT: 'true'
- uses: actions/upload-artifact@v4
with:
name: linux-armv7l
path: ./wheelhouse

0 comments on commit 63746f6

Please sign in to comment.