Skip to content

Commit f39af72

Browse files
committed
Release 1.0.0
2 parents e8edace + 82a557c commit f39af72

270 files changed

Lines changed: 19943 additions & 7020 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/main.yml

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
name: build
2+
on: push
3+
env:
4+
BUILD_TYPE: Release
5+
jobs:
6+
build:
7+
runs-on: ${{matrix.os}}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
include:
12+
- os: ubuntu-latest
13+
cxx_compiler: g++-10
14+
c_compiler: gcc-10
15+
omp: ON
16+
target: all
17+
18+
- os: ubuntu-latest
19+
cxx_compiler: clang++
20+
c_compiler: clang
21+
omp: ON
22+
target: all
23+
24+
#- os: windows-latest
25+
# cxx_compiler: msbuild
26+
# c_compiler: msbuild
27+
# omp: ON
28+
# target: ALL_BUILD
29+
30+
#- os: windows-latest
31+
# cxx_compiler: x86_64-w64-mingw32-g++
32+
# c_compiler: x86_64-w64-mingw32-gcc
33+
# omp: ON
34+
# target: all
35+
# generator: '-G "MinGW Makefiles"'
36+
37+
- os: macos-latest
38+
cxx_compiler: clang++
39+
c_compiler: clang
40+
omp: OFF
41+
target: all
42+
43+
- os: macos-latest
44+
cxx_compiler: g++-10
45+
c_compiler: gcc-10
46+
omp: ON
47+
target: all
48+
steps:
49+
- uses: actions/checkout@v2
50+
51+
- name: Setup Python
52+
uses: actions/setup-python@v2
53+
with:
54+
python-version: '3.x'
55+
architecture: x64
56+
57+
- name: Install zfpy dependencies
58+
run: |
59+
python -m pip install cython
60+
python -m pip install numpy
61+
62+
- name: Setup Python
63+
uses: actions/setup-python@v2
64+
with:
65+
python-version: '3.x'
66+
architecture: x64
67+
68+
- name: Install zfpy dependencies
69+
run: |
70+
python -m pip install cython
71+
python -m pip install numpy
72+
73+
- name: Setup MSBuild (Windows)
74+
id: msbuild
75+
if: ${{matrix.os == 'windows-latest' && matrix.cxx_compiler == 'msbuild'}}
76+
uses: microsoft/setup-msbuild@v1.0.3
77+
78+
#- name: Setup MinGW (Windows)
79+
# id: mingw
80+
# if: ${{matrix.os == 'windows-latest' && matrix.cxx_compiler == 'x86_64-w64-mingw32-g++'}}
81+
# uses: egor-tensin/setup-mingw@v2
82+
83+
- name: CI Settings
84+
id: settings
85+
run: |
86+
echo "os: ${{matrix.os}}"
87+
echo "compilers:"
88+
echo " cxx: ${{matrix.cxx_compiler}}"
89+
echo " c: ${{matrix.c_compiler}}"
90+
echo "OpenMP: ${{matrix.omp}}"
91+
92+
- name: Run CMake
93+
id: cmake
94+
run: cmake -B ${{github.workspace}}/build ${{matrix.generator}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_CXX_COMPILER=${{matrix.cxx_compiler}} -DCMAKE_C_COMPILER=${{matrix.c_compiler}} -DBUILD_TESTING=ON -DZFP_WITH_OPENMP=${{matrix.omp}} -DBUILD_ZFPY=ON -DPYTHON_INCLUDE_DIR=$(python -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())") -DPYTHON_LIBRARY=$(python -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
95+
96+
- name: Build
97+
id: build
98+
run: cmake --build ${{github.workspace}}/build --target ${{matrix.target}} --config ${{env.BUILD_TYPE}}
99+
100+
- name: Run Tests
101+
id: test
102+
working-directory: ${{github.workspace}}/build
103+
run: ctest -C ${{env.BUILD_TYPE}} -VV
104+
105+
# Interactive Debug -> see: https://github.com/mxschmitt/action-tmate
106+
#- name: Setup Debug Session
107+
# uses: mxschmitt/action-tmate@v3

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
bin
44
build
55
lib
6+
dist
7+
wheelhouse
8+
zfpy.egg-info
9+
modules

0 commit comments

Comments
 (0)