Skip to content

Commit

Permalink
Copy package_linux_wheels job from openDaq to build version of module…
Browse files Browse the repository at this point in the history
…s that do not depend on fmt10
  • Loading branch information
sedovmo committed Oct 23, 2024
1 parent 931a611 commit 36b8695
Showing 1 changed file with 56 additions and 3 deletions.
59 changes: 56 additions & 3 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: CMake on multiple platforms

on:
push:
branches: [ "main" ]
branches: [ "other/fmt" ]
pull_request:
branches: [ "main" ]
branches: [ "other/fmt" ]

env:
package_path: ${{ github.workspace }}/build/package/
Expand Down Expand Up @@ -175,4 +175,57 @@ jobs:
with:
name: asam-cmp-${{ matrix.os }}-${{ matrix.c_compiler }}
path: ${{ env.package_path }}
retention-days: 7
retention-days: 7

package_linux_wheels:
runs-on: ubuntu-latest
name: ${{ matrix.name }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.name }}
cancel-in-progress: true
timeout-minutes: 180
strategy:
fail-fast: false
matrix:
include:
- name: manylinux2014 gcc Release
image: quay.io/pypa/manylinux2014_x86_64
cmake_generator: Ninja
cmake_build_type: Release
additional_packages:
cc: gcc
cxx: g++
cpack: ZIP

container:
image: ${{ matrix.image }}
env:
TZ: Europe/Berlin
CC: ${{ matrix.cc }}
CXX: ${{ matrix.cxx }}

steps:
- name: Install basic dependencies
run: |
yum update -y
yum install -y git
- name: Checkout
uses: actions/checkout@v3

- name: Install build dependencies
run: |
yum install -y ${{ matrix.additional_packages }} \
ninja-build \
mono-core \
freetype-devel libudev-devel libX11-devel libXcursor-devel libXrandr-devel
- name: Create build dir
run: mkdir build

- name: Configure and build Python Wheels
working-directory: build
run: |
cmake -G "${{ matrix.cmake_generator }}" --preset package -DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} -DCI_GIT_BRANCH=${{ github.ref }} -DOPENDAQ_PYTHON_VERSION=3.10 ..
cmake --build .

0 comments on commit 36b8695

Please sign in to comment.