Commit e1e316df authored by jerem's avatar jerem Committed by jeremad

chore(ci): use github actions instead of travis

parent 4ce0be01
name: Build
on: [push]
jobs:
LinuxCuda8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: CMake
run: docker build . --file docker/ci.dockerfile --tag stitchem-cuda8:latest --build-arg version=8
- name: Build
run: docker run stitchem-cuda8:latest
LinuxCuda9:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: CMake
run: docker build . --file docker/ci.dockerfile --tag stitchem-cuda9:latest --build-arg version=9
- name: Build
run: docker run stitchem-cuda9:latest
LinuxCuda10:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: CMake
run: docker build . --file docker/ci.dockerfile --tag stitchem-cuda10:latest --build-arg version=10
- name: Build
run: docker run stitchem-cuda10:latest
MacOpenCL:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: Deps
run: brew install bison ceres-solver CMake doxygen faac faad2 ffmpeg glew glfw glm jpeg libpng libtiff ninja opencv@3 qt yasm
- name: CMake
run: mkdir build && cd build && PATH="/usr/local/opt/bison/bin:${PATH}" cmake -DCREATE_BOX_PACKAGE=OFF -DGPU_BACKEND_CUDA=OFF -DGPU_BACKEND_OPENCL=ON -DMACPORTS=OFF -DQt5_DIR=/usr/local/opt/qt/lib/cmake/Qt5 -G Ninja ..
- name: Build
run: cd build && ninja
WindowsCuda:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
language: cpp
cache: ccache
matrix:
include:
- name: OpenCL macOS
os: osx
addons:
homebrew:
update: true
packages:
- bison
- ccache
- ceres-solver
- CMake
- doxygen
- faac
- faad2
- ffmpeg
- glew
- glfw
- glm
- jpeg
- libpng
- libtiff
- ninja
- opencv@3
- qt
- yasm
before_install:
- export PATH="/usr/local/opt/bison/bin:/usr/local/opt/ccache/libexec:${PATH}"
script:
- mkdir build
- cd build
- cmake -DCREATE_BOX_PACKAGE=OFF -DGPU_BACKEND_CUDA=OFF -DGPU_BACKEND_OPENCL=ON -DMACPORTS=OFF -DQt5_DIR=/usr/local/opt/qt/lib/cmake/Qt5 -G Ninja ..
- ninja
- name: CUDA 8 Linux
dist: xenial
services:
- docker
before_script:
- docker build --tag stitchem-cuda8:latest --file docker/ci.dockerfile --build-arg version=8 .
- docker create -v ${HOME}/.ccache:/ccache --name ccache stitchem-cuda8:latest
script:
- docker run --env CCACHE_DIR=/ccache --volumes-from ccache stitchem-cuda8:latest
- name: CUDA 9 Linux
dist: xenial
services:
- docker
before_script:
- docker build --tag stitchem-cuda9:latest --file docker/ci.dockerfile --build-arg version=9 .
- docker create -v ${HOME}/.ccache:/ccache --name ccache stitchem-cuda9:latest
script:
- docker run --env CCACHE_DIR=/ccache --volumes-from ccache stitchem-cuda9:latest
- name: CUDA 10 Linux
dist: xenial
services:
- docker
before_script:
- docker build --tag stitchem-cuda10:latest --file docker/ci.dockerfile --build-arg version=10 .
- docker create -v ${HOME}/.ccache:/ccache --name ccache stitchem-cuda10:latest
script:
- docker run --env CCACHE_DIR=/ccache --volumes-from ccache stitchem-cuda10:latest
......@@ -126,6 +126,10 @@ endif()
# Use definitions from the cmake folder for find_package
# ----------------------------------------------------------------------------
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
if(APPLE)
list(APPEND CMAKE_PREFIX_PATH /usr/local/opt/opencv@3/share/OpenCV)
include_directories("/usr/local/include")
endif()
# ----------------------------------------------------------------------------
......
[license-badge]: https://img.shields.io/badge/license-MIT-green.svg
[license-link]: https://opensource.org/licenses/MIT
[travis-badge]: https://img.shields.io/travis/stitchEm/stitchEm/master.svg?label=Build
[travis-link]: https://travis-ci.org/stitchEm/stitchEm
[actions-badge]: https://github.com/stitchEm/stitchEm/workflows/Build/badge.svg
[actions-link]: https://github.com/stitchEm/stitchEm/actions
[![License][license-badge]][license-link]
[![Build][travis-badge]][travis-link]
[![Build][actions-badge]][actions-link]
Vahana VR & VideoStitch Studio: software to create immersive 360° VR video, live and in post-production.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment