- issue 3276: resolve items before deleting as they may already be gone #231
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- 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: | | |
yum install -y libuuid-devel | |
- 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 -DENABLE_JIT=OFF -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@v4 | |
with: | |
name: | |
copasi-se-openmp-manylinux_2_28_x86_64 | |
path: ${{github.workspace}}/install/* | |
retention-days: 10 | |
if-no-files-found: error |