Skip to content

missed an enum

missed an enum #1062

name: C++ Build
on:
push:
branches-ignore:
- "master"
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
pre-build-command: "apt-get --allow-releaseinfo-change update -y && apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended"
build-command: "make latexpdf"
- uses: actions/upload-artifact@v3
with:
name: DocumentationHTML
path: docs/_build/html/
- uses: actions/upload-artifact@v3
with:
name: agave-macos
path: docs/_build/latex/agave.pdf
- uses: actions/upload-artifact@v3
with:
name: agave-win
path: docs/_build/latex/agave.pdf
docs_pythonclient:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "agave_pyclient/docs/"
pre-build-command: "pip install -e ./agave_pyclient"
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "agave_pyclient/docs/"
pre-build-command: "pip install -e ./agave_pyclient && apt-get --allow-releaseinfo-change update -y && apt-get install -y latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended"
build-command: "make latexpdf"
- uses: actions/upload-artifact@v3
with:
name: DocumentationPythonClientHTML
path: agave_pyclient/docs/_build/html/
- uses: actions/upload-artifact@v3
with:
name: agave-macos
path: agave_pyclient/docs/_build/latex/agave_pyclient.pdf
- uses: actions/upload-artifact@v3
with:
name: agave-win
path: agave_pyclient/docs/_build/latex/agave_pyclient.pdf
cmake-build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 6.5.1
modules: qtwebsockets qtimageformats
- name: macos install deps
if: matrix.os == 'macos-latest'
env:
CC: clang
CXX: clang++
run: |
export MACOSX_DEPLOYMENT_TARGET=10.15
brew install spdlog glm libtiff nasm zstd
- name: macos build and test
if: matrix.os == 'macos-latest'
env:
CC: clang
CXX: clang++
run: |
export MACOSX_DEPLOYMENT_TARGET=10.15
mkdir ./build
cd build
cmake ..
cmake --build . --target agave_test --config Release
sudo cmake --build . --target install --config Release
zip -vr agave-macos.zip agave.app/
shell: bash
- name: Upload mac artifact
if: matrix.os == 'macos-latest'
uses: actions/upload-artifact@v3
with:
name: agave-macos
path: ./build/agave-macos.zip
- name: linux install deps
if: matrix.os == 'ubuntu-latest'
env:
CC: gcc
CXX: g++
run: |
sudo apt-get install libspdlog-dev libglm-dev libgl1-mesa-dev libegl1-mesa-dev mesa-vulkan-drivers libtiff-dev libzstd-dev nasm
- name: linux build and test
if: matrix.os == 'ubuntu-latest'
env:
CC: gcc-10
CXX: g++-10
run: |
mkdir ./build
cd build
cmake ..
cmake --build . --target agave_test --config Release
cmake --build . --target install --config Release
shell: bash
- name: windows install deps
if: matrix.os == 'windows-latest'
env:
vc_arch: "x64"
run: |
vcpkg install --triplet x64-windows tiff glm zlib libjpeg-turbo liblzma spdlog zstd
- name: windows get nasm
if: matrix.os == 'windows-latest'
uses: ilammy/setup-nasm@v1
- name: windows build and test
if: matrix.os == 'windows-latest'
env:
vc_arch: "x64"
run: |
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE="%VCPKG_INSTALLATION_ROOT%\scripts\buildsystems\vcpkg.cmake" -DVCPKG_TARGET_TRIPLET=x64-windows -A x64 ..
cmake --build . --target agave_test --config Release
cmake --build . --target agaveapp --config Release
cmake --build . --target INSTALL --config Release
cmake --install .
powershell Compress-Archive -Path .\agave-install -DestinationPath agave-win.zip
shell: cmd
- name: Upload windows artifact
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v3
with:
name: agave-win
path: ./build/agave-win.zip
lint-and-test-webclient:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "recursive"
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: |
cd webclient
npm ci
npm run lint
npm run typeCheck
npm run test --if-present
lint-and-test-pyclient:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
cd agave_pyclient
pip install .[test]
- name: Lint with flake8
run: |
cd agave_pyclient
flake8 agave_pyclient --count --verbose --show-source --statistics
black --check --exclude vendor agave_pyclient
pytest agave_pyclient/tests/