-
Notifications
You must be signed in to change notification settings - Fork 39
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
31 changed files
with
9,241 additions
and
0 deletions.
There are no files selected for viewing
130 changes: 130 additions & 0 deletions
130
externals/nitro/externals/coda-oss/.github/workflows/build_unittest.yml
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,130 @@ | ||
name: build_unittest | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-cmake-windows: | ||
strategy: | ||
matrix: | ||
os: [windows-latest] | ||
python-version: ['3.7'] | ||
name: ${{ matrix.os }}-${{ matrix.python-version }}-CMake | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install python dependencies | ||
run: | | ||
pip install numpy | ||
- name: configure | ||
run: | | ||
ls env: | ||
mkdir target-Release | ||
cd target-Release | ||
cmake .. -DCMAKE_INSTALL_PREFIX=install${{ matrix.os }}CMake-Github -DPYTHON_VERSION=${{ matrix.python-version }} -DENABLE_SWIG=ON | ||
cd .. | ||
mkdir target-Debug | ||
cd target-Debug | ||
cmake .. -DCMAKE_INSTALL_PREFIX=install${{ matrix.os }}CMake-Github -DENABLE_PYTHON=OFF | ||
- name: build | ||
run: | | ||
cd target-Release | ||
cmake --build . --config Release -j | ||
cd .. | ||
cd target-Debug | ||
cmake --build . --config Debug -j | ||
- name: install | ||
run: | | ||
cd target-Release | ||
cmake --build . --config Release --target install | ||
cd .. | ||
cd target-Debug | ||
cmake --build . --config Debug --target install | ||
- name: test | ||
run: | | ||
cd target-Release | ||
ctest -C Release --output-on-failure | ||
cd .. | ||
cd target-Debug | ||
ctest -C Debug --output-on-failure | ||
build-linux-cmake: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ['3.7'] | ||
name: ${{ matrix.os }}-${{ matrix.python-version }}-CMake | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install python dependencies | ||
run: | | ||
pip install numpy | ||
- name: configure | ||
run: | | ||
env | ||
which python | ||
mkdir target | ||
cd target | ||
export CC=gcc-10 | ||
export CXX=g++-10 | ||
cmake .. -DCMAKE_INSTALL_PREFIX=install${{ matrix.os }}CMake-Github -DPYTHON_VERSION=${{ matrix.python-version }} -DENABLE_SWIG=ON | ||
- name: build | ||
run: | | ||
cd target | ||
# "-j" spawns too many processes causing GCC to crash | ||
cmake --build . -j 12 | ||
- name: install | ||
run: | | ||
cd target | ||
cmake --build . --target install | ||
- name: test | ||
run: | | ||
cd target | ||
ctest --output-on-failure | ||
build-waf: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python-version: ['3.7'] | ||
debugging: ['--enable-debugging', ''] | ||
name: ${{ matrix.os }}-${{ matrix.python-version }}-waf | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: configure_with_swig | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
run: | | ||
pip install numpy | ||
mkdir install${{ matrix.os }}Waf-Github | ||
export CC=gcc-10 | ||
export CXX=g++-10 | ||
python waf configure --prefix="$PWD/install${{ matrix.os }}Waf-Github" --enable-swig ${{ matrix.debugging }} | ||
- name: configure_without_swig | ||
if: ${{ matrix.os == 'windows-2019' }} | ||
run: | | ||
pip install numpy | ||
mkdir install${{ matrix.os }}Waf-Github | ||
python waf configure --prefix="$PWD/install${{ matrix.os }}Waf-Github" ${{ matrix.debugging }} | ||
- name: build | ||
run: | | ||
python waf build | ||
- name: install | ||
run: | | ||
python waf install | ||
- name: test | ||
run: | | ||
python waf install --alltests | ||
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,56 @@ | ||
*.swp | ||
*~ | ||
*.pyc | ||
__pycache__/ | ||
|
||
# Build artifacts | ||
install/ | ||
install-*/ | ||
target/ | ||
|
||
# Conan | ||
modules/drivers/**/build | ||
test_package/build/ | ||
|
||
# CMake | ||
_deps/ | ||
CMakeCache.txt | ||
CMakeFiles/ | ||
*_config.h | ||
Makefile | ||
modules/**/Makefile | ||
out/ | ||
CMakeSettings.json | ||
|
||
# Waf | ||
.waf-* | ||
waf-* | ||
.waf3-* | ||
waf3-* | ||
.lock-waf* | ||
build/waf*/ | ||
|
||
# Eclipse | ||
.project | ||
.cproject | ||
|
||
# Drivers | ||
modules/drivers/fftw/fftw-2.1.*/ | ||
modules/drivers/jpeg/jpeg-9/ | ||
modules/drivers/jpeg/jpeg-9d/ | ||
modules/drivers/j2k/openjpeg/openjpeg-2.3.*_mod/ | ||
modules/drivers/pcre/pcre2-10.*/ | ||
modules/drivers/uuid/e2fsprogs-1.*-uuid/ | ||
modules/drivers/xml/xerces/xerces-c-*/ | ||
modules/drivers/zlib/zlib-1.2.*/ | ||
|
||
# VS | ||
.vs/ | ||
project.sln | ||
.depproj/ | ||
*.tlog | ||
**/x64/ | ||
*.vcxproj.user | ||
|
||
# Unit-tests | ||
TEST_*_TMP*.* |
Oops, something went wrong.