Add GPU Vulkan implementation #34
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
name: infoware CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
linux: | |
name: ${{matrix.os}} amd64 (${{matrix.cpp-version}}) | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
cpp-version: [g++, clang++] | |
os: ["ubuntu-20.04", "ubuntu-22.04"] | |
steps: | |
- name: Checkout infoware | |
uses: actions/checkout@v2 | |
with: | |
path: infoware | |
- name: Install apt packages | |
run: sudo apt update && sudo apt install -y cmake ninja-build ocl-icd-opencl-dev | |
- name: Generate CMake | |
run: mkdir infoware/build && cd infoware/build && cmake -DCMAKE_BUILD_TYPE=Release -DINFOWARE_USE_OPENCL=ON -DINFOWARE_EXAMPLES=ON -DINFOWARE_TESTS=ON -G Ninja .. | |
env: | |
CXX: ${{matrix.cpp-version}} | |
- name: Build Project | |
run: cmake --build infoware/build | |
- name: Run Tests | |
run: ctest --test-dir infoware/build | |
mingw: | |
name: Linux MinGW (${{matrix.arch.pkg}}) | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: | |
- { pkg: i686, paths: i686 } | |
- { pkg: x86-64, paths: x86_64 } | |
steps: | |
- name: Checkout infoware | |
uses: actions/checkout@v2 | |
with: | |
path: infoware | |
- name: Install apt packages | |
run: sudo apt update && sudo apt install -y cmake ninja-build g++-mingw-w64-${{matrix.arch.pkg}} | |
- name: Generate CMake | |
run: mkdir infoware/build && cd infoware/build && cmake -DCMAKE_BUILD_TYPE=Release -DMINGW_ARCH=${{matrix.arch.paths}} -DCMAKE_TOOLCHAIN_FILE=../.github/workflows/mingw.cmake -G Ninja .. | |
- name: Build Project | |
run: cmake --build infoware/build | |
macos: | |
name: macOS ${{matrix.os}} ${{matrix.arch}} | |
runs-on: ${{matrix.os}} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["macos-12", "macos-11", "macos-10.15"] | |
arch: ["X64", "ARM64"] | |
steps: | |
- name: Checkout infoware | |
uses: actions/checkout@v2 | |
with: | |
path: infoware | |
- name: Install homebrew packages | |
run: brew install cmake ninja openssl | |
- name: Generate CMake | |
run: mkdir infoware/build && cd infoware/build && cmake -DCMAKE_BUILD_TYPE=Release -DINFOWARE_USE_OPENCL=ON -DINFOWARE_EXAMPLES=ON -DINFOWARE_TESTS=ON -G Ninja .. | |
- name: Build Project | |
run: cmake --build infoware/build | |
- name: Run Tests | |
run: ctest --test-dir infoware/build | |
windows: # Windows amd64 and i386 build matrix | |
strategy: | |
fail-fast: false # Don't cancel other matrix jobs if one fails | |
matrix: | |
cfg: | |
- { name: i386, arch: x86, chocoargs: "--x86"} | |
- { name: amd64, arch: x64, chocoargs: ""} | |
name: "Windows MSVC ${{matrix.cfg.name}}" | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout infoware | |
uses: actions/checkout@v2 | |
with: | |
path: infoware | |
- name: Configure MSBuild | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: ${{ matrix.cfg.arch }} | |
- name: Install chocolatey packages (${{ matrix.cfg.name }}) | |
run: choco install ninja -y ${{ matrix.cfg.chocargs }} | |
- name: Generate CMake | |
run: mkdir infoware/build && cd infoware/build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DINFOWARE_EXAMPLES=ON -DINFOWARE_TESTS=ON .. | |
- name: Build Project | |
run: cmake --build infoware/build | |
- name: Run Tests | |
run: ctest --test-dir infoware/build |