diff options
Diffstat (limited to '.github/workflows/linux-cmake-build.yml')
-rw-r--r-- | .github/workflows/linux-cmake-build.yml | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.github/workflows/linux-cmake-build.yml b/.github/workflows/linux-cmake-build.yml new file mode 100644 index 0000000..3d128f6 --- /dev/null +++ b/.github/workflows/linux-cmake-build.yml @@ -0,0 +1,33 @@ +name: Linux build + +on: + pull_request: + +# Cancel previous runs if a more recent commit is pushed. +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref }} + cancel-in-progress: true + +permissions: read-all + +jobs: + linux-build: + name: Build and run tests on Linux using CMake + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: '0' + - name: Clone submodules + run: git submodule update --init --recursive + - name: Build + run: | + mkdir build + cd build + cmake .. -DSPIRV_REFLECT_BUILD_TESTS=ON + make -j $(nproc) + - name: Run unit tests + run: | + cd build + ./test-spirv-reflect |