Fix warning #450
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: C/C++ CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Checkout submodules | |
| run: git submodule update --init --recursive | |
| - name: Lunarg repo | |
| run: echo "deb https://packages.lunarg.com/vulkan jammy main" | sudo tee /etc/apt/sources.list.d/lunarg-vulkan-focal.list | |
| - name: Lunarg key | |
| run: wget -qO - http://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add - | |
| - name: apt-get update | |
| run: sudo apt-get update | |
| - name: Install packages | |
| run: sudo apt-get install vulkan-tools glslang-dev glslang-tools mesa-vulkan-drivers libvulkan-dev vulkan-headers libopenblas-openmp-dev libcmocka-dev libplplot-dev libnetcdf-dev cmake ninja-build | |
| - name: configure | |
| run: mkdir build && cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo | |
| - name: make | |
| run: cmake --build build | |
| - name: vulkaninfo | |
| run: vulkaninfo --summary | |
| - name: test | |
| run: cmake --build build --target test | |
| - name: Publish Unit Test Results | |
| uses: EnricoMi/[email protected] | |
| if: always() | |
| with: | |
| files: build/ut/*.xml |