Skip to content

Advanced features

Advanced features #12

Workflow file for this run

name: Build & Release cpp_unix_bindings
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "**" ]
release:
types: [ created ]
jobs:
build:
name: Build shared library
runs-on: ubuntu-latest
container:
image: quay.io/pypa/manylinux2014_x86_64
options: --user root
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install build dependencies (CMake)
run: |
yum install -y cmake3
ln -sf /usr/bin/cmake3 /usr/bin/cmake
- name: Configure & Build
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(nproc)
- name: Upload library artifact
uses: actions/upload-artifact@v4
with:
name: libcpp_unix_bindings
path: build/libcpp_unix_bindings.so
retention-days: 14
- name: Attach library to release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v1
with:
files: build/libcpp_unix_bindings.so