Skip to content

Fixed error in C# bindings. #100

Fixed error in C# bindings.

Fixed error in C# bindings. #100

Workflow file for this run

name: Build OpenMP (manylinux_2_28_x86_64)
on:
push:
paths:
- "**"
- "!.github/**"
- ".github/workflows/copasi_se_mp.yml"
defaults:
run:
shell: bash
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
name: manylinux
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux_2_28_x86_64
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: |
cmake --version
curl -L https://github.com/copasi/copasi-dependencies/releases/latest/download/manylinux_2_28_x86_64.zip -o manylinux.zip
unzip -n -qq manylinux.zip -d dependencies
- name: install latest cmake
run: |
/opt/python/cp38-cp38/bin/pip install cmake
ln -s /opt/python/cp38-cp38/bin/cmake /usr/bin/cmake
- name: install libuuid (static)
run: |
curl -L -O http://downloads.sourceforge.net/libuuid/libuuid-1.0.3.tar.gz
tar -zxf libuuid-1.0.3.tar.gz
cd libuuid-1.0.3
./configure --disable-dependency-tracking --with-pic --enable-static=yes --enable-shared=no
make
make install
rm /usr/local/lib/libuuid.la
- name: Update COPASI Version
run: ./gitTools/UpdateCopasiVersion --force
- name: Configure COPASI
shell: bash
run: |
cmake -B build_copasi -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCOPASI_INSTALL_C_API=ON -DBUILD_TESTS=ON -DBUILD_GUI=OFF -DCOPASI_DEPENDENCY_DIR=./dependencies/ -DCMAKE_INSTALL_PREFIX=./install/ -DENABLE_OMP=ON -S .
sed -i 's/libgomp.a/libgomp.so/g' build_copasi/CMakeCache.txt
sed -i 's/libpthread.a/libpthread.so/g' build_copasi/CMakeCache.txt
- name: Build COPASI
shell: bash
working-directory: build_copasi
run: cmake --build . --config $BUILD_TYPE
- name: Install COPASI
shell: bash
working-directory: build_copasi
run: cmake --build . --config $BUILD_TYPE --target install
- name: binary archive
uses: actions/upload-artifact@v2
with:
name:
copasi-se-openmp-manylinux_2_28_x86_64
path: ${{github.workspace}}/install/*
retention-days: 10
if-no-files-found: error