Skip to content

Commit

Permalink
Merge branch 'feature/ax' into feature/axcore
Browse files Browse the repository at this point in the history
  • Loading branch information
Idclip committed Sep 23, 2020
2 parents 55756ca + 9e5a5d9 commit b57f280
Show file tree
Hide file tree
Showing 13 changed files with 281 additions and 321 deletions.
87 changes: 71 additions & 16 deletions .github/workflows/ax.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,79 @@

name: ax
name: AX

on:
push:
branches:
- '**'
paths-ignore:
- 'CHANGES'
- 'openvdb/doc/**'
- 'openvdb_maya/**'
- '**/*.md'
pull_request:
branches:
- '**'
paths-ignore:
- 'CHANGES'
- 'openvdb/doc/**'
- 'openvdb_maya/**'
- '**/*.md'
schedule:
# run this workflow every midnight Tuesday
- cron: '0 0 * * 2'

jobs:
linux-core:
linux-ax-full-vfx:
runs-on: ubuntu-16.04
name: linux-vfx:${{ matrix.image }}-compiler:${{ matrix.compiler }}-llvm:${{ matrix.llvm }}-${{ matrix.build }}
name: linux-ax-full-vfx:${{ matrix.image }}-cxx:${{ matrix.compiler }}-${{ matrix.build }}
container:
image: aswf/ci-openvdb:${{ matrix.image }}
env:
CXX: ${{ matrix.compiler }}
LLVM_DIR: /github/home/llvm-8.0.0-${{ matrix.compiler }}
strategy:
matrix:
image: ['2019', '2020']
compiler: ['clang++']
build: ['Release']
# Extra builds
include:
- image: '2020'
compiler: 'g++'
build: 'Release'
- image: '2020'
compiler: 'clang++'
build: 'Debug'
fail-fast: false
steps:
- uses: actions/checkout@v2
# Setup
- name: llvm_cache
id: llvm_cache
uses: actions/cache@v2
with:
key: ${{ env.LLVM_DIR }}
path: ${{ env.LLVM_DIR }}
- name: install_llvm
if: steps.llvm_cache.outputs.cache-hit != 'true'
run: ./ci/install_llvm.sh 8.0.0 ${{ env.LLVM_DIR }}
- name: install_libedit
run: yum -y install libedit-devel
# Build
- name: build
run: |
./ci/build.sh ${{ matrix.build }} None ON None "core,axcore,axbin,axtest" \
-DOPENVDB_CXX_STRICT=ON \
-DLLVM_DIR=${{ env.LLVM_DIR }}
# Tests
- name: test
run: cd build && ctest -V
- name: test_doxygen_examples
run: ./ci/extract_test_examples.sh

linux-ax-vfx:
runs-on: ubuntu-16.04
name: linux-ax-vfx:${{ matrix.image }}-cxx:${{ matrix.compiler }}-llvm:${{ matrix.llvm }}-${{ matrix.build }}
container:
image: aswf/ci-vfxall:${{ matrix.image }}
env:
Expand All @@ -24,14 +82,14 @@ jobs:
strategy:
matrix:
image: ['2019', '2020']
compiler: ['g++', 'clang++']
compiler: ['clang++']
build: ['Release']
llvm: ['6.0.0','7.0.0','8.0.0','9.0.0','10.0.0']
# Debug builds
# Extra builds
include:
- image: '2020'
compiler: 'g++'
build: 'Debug'
build: 'Release'
llvm: '8.0.0'
- image: '2020'
compiler: 'clang++'
Expand All @@ -55,8 +113,8 @@ jobs:
# Build
- name: build
run: |
./ci/build_ax.sh \
-DCMAKE_BUILD_TYPE=${{ matrix.build }} \
./ci/build.sh ${{ matrix.build }} None ON None "axcore,axbin,axtest" \
-DOPENVDB_CXX_STRICT=ON \
-DLLVM_DIR=${{ env.LLVM_DIR }}
# Tests
- name: test
Expand All @@ -66,18 +124,18 @@ jobs:

macos-core:
runs-on: macos-10.15
name: macos-compiler:${{ matrix.compiler }}-llvm:${{ matrix.llvm }}-${{ matrix.build }}
name: macos-cxx:${{ matrix.compiler }}-llvm:${{ matrix.llvm }}-${{ matrix.build }}
env:
CXX: ${{ matrix.compiler }}
strategy:
matrix:
compiler: ['g++', 'clang++']
compiler: ['clang++']
build: ['Release']
llvm: ['6','7','8','9','10']
# Debug builds
# Extra builds
include:
- compiler: 'g++'
build: 'Debug'
build: 'Release'
llvm: '8'
- compiler: 'clang++'
build: 'Debug'
Expand All @@ -88,13 +146,10 @@ jobs:
# Setup
- name: install_deps
run: ./ci/install_macos_ax.sh ${{ matrix.llvm }}
- name: install_openvdb
run: ./ci/install_openvdb.sh 7.0.0 $HOME/openvdb-7.0.0-${{ matrix.compiler }}
# Build
- name: build
run: |
./ci/build_ax.sh \
-DCMAKE_BUILD_TYPE=${{ matrix.build }} \
./ci/build.sh ${{ matrix.build }} None ON None "core,axcore,axbin,axtest" \
-DLLVM_DIR=/usr/local/opt/llvm@${{ matrix.llvm }}/lib/cmake/llvm \
-DOPENVDB_ROOT=$HOME/openvdb-7.0.0-${{ matrix.compiler }}
# Tests
Expand Down
Loading

0 comments on commit b57f280

Please sign in to comment.