-
Notifications
You must be signed in to change notification settings - Fork 29
75 lines (62 loc) · 2.33 KB
/
copasi_se_mp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
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: |
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 -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