Dev #7
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, windows-latest, macos-14] | |
| runs-on: ${{ matrix.os }} | |
| name: Build & Test on ${{ matrix.os }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| - name: Dependencies (Linux) | |
| if: matrix.os == 'ubuntu-22.04' | |
| run: | | |
| wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add - | |
| sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list | |
| sudo apt-get update -y | |
| sudo apt-get install -y build-essential cmake g++ ninja-build mesa-vulkan-drivers vulkan-sdk | |
| - name: Dependencies (Windows) | |
| if: matrix.os == 'windows-latest' | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Configure (Linux) | |
| if: matrix.os == 'ubuntu-22.04' | |
| run: > | |
| cmake . -B build -G Ninja | |
| -D CMAKE_BUILD_TYPE=Release | |
| -D VISP_CI=ON | |
| -D VISP_VULKAN=ON | |
| -D VISP_FMT_LIB=ON | |
| - name: Configure (Windows) | |
| if: matrix.os == 'windows-latest' | |
| run: > | |
| cmake . -B build -A x64 | |
| -D CMAKE_BUILD_TYPE=Release | |
| -D VISP_CI=ON | |
| - name: Configure (MacOS) | |
| if: matrix.os == 'macos-14' | |
| run: > | |
| cmake . -B build -G Ninja | |
| -D CMAKE_BUILD_TYPE=Release | |
| -D VISP_CI=ON | |
| -D GGML_METAL=OFF | |
| -D GGML_RPC=ON | |
| -D CMAKE_BUILD_RPATH="@loader_path" | |
| - name: Build | |
| run: cmake --build build | |
| - name: Test | |
| working-directory: ./build | |
| run: ctest --verbose | |
| - name: Install | |
| run: cmake --install build --prefix install | |
| - name: Package | |
| working-directory: ./build | |
| run: cpack | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: visioncpp | |
| path: | | |
| ./build/*.tar.gz | |
| ./build/*.zip |