-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
270 changed files
with
19,943 additions
and
7,020 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
name: build | ||
on: push | ||
env: | ||
BUILD_TYPE: Release | ||
jobs: | ||
build: | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
cxx_compiler: g++-10 | ||
c_compiler: gcc-10 | ||
omp: ON | ||
target: all | ||
|
||
- os: ubuntu-latest | ||
cxx_compiler: clang++ | ||
c_compiler: clang | ||
omp: ON | ||
target: all | ||
|
||
#- os: windows-latest | ||
# cxx_compiler: msbuild | ||
# c_compiler: msbuild | ||
# omp: ON | ||
# target: ALL_BUILD | ||
|
||
#- os: windows-latest | ||
# cxx_compiler: x86_64-w64-mingw32-g++ | ||
# c_compiler: x86_64-w64-mingw32-gcc | ||
# omp: ON | ||
# target: all | ||
# generator: '-G "MinGW Makefiles"' | ||
|
||
- os: macos-latest | ||
cxx_compiler: clang++ | ||
c_compiler: clang | ||
omp: OFF | ||
target: all | ||
|
||
- os: macos-latest | ||
cxx_compiler: g++-10 | ||
c_compiler: gcc-10 | ||
omp: ON | ||
target: all | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
architecture: x64 | ||
|
||
- name: Install zfpy dependencies | ||
run: | | ||
python -m pip install cython | ||
python -m pip install numpy | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
architecture: x64 | ||
|
||
- name: Install zfpy dependencies | ||
run: | | ||
python -m pip install cython | ||
python -m pip install numpy | ||
- name: Setup MSBuild (Windows) | ||
id: msbuild | ||
if: ${{matrix.os == 'windows-latest' && matrix.cxx_compiler == 'msbuild'}} | ||
uses: microsoft/setup-msbuild@v1.0.3 | ||
|
||
#- name: Setup MinGW (Windows) | ||
# id: mingw | ||
# if: ${{matrix.os == 'windows-latest' && matrix.cxx_compiler == 'x86_64-w64-mingw32-g++'}} | ||
# uses: egor-tensin/setup-mingw@v2 | ||
|
||
- name: CI Settings | ||
id: settings | ||
run: | | ||
echo "os: ${{matrix.os}}" | ||
echo "compilers:" | ||
echo " cxx: ${{matrix.cxx_compiler}}" | ||
echo " c: ${{matrix.c_compiler}}" | ||
echo "OpenMP: ${{matrix.omp}}" | ||
- name: Run CMake | ||
id: cmake | ||
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'))") | ||
|
||
- name: Build | ||
id: build | ||
run: cmake --build ${{github.workspace}}/build --target ${{matrix.target}} --config ${{env.BUILD_TYPE}} | ||
|
||
- name: Run Tests | ||
id: test | ||
working-directory: ${{github.workspace}}/build | ||
run: ctest -C ${{env.BUILD_TYPE}} -VV | ||
|
||
# Interactive Debug -> see: https://github.com/mxschmitt/action-tmate | ||
#- name: Setup Debug Session | ||
# uses: mxschmitt/action-tmate@v3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,7 @@ | |
bin | ||
build | ||
lib | ||
dist | ||
wheelhouse | ||
zfpy.egg-info | ||
modules |
Oops, something went wrong.