blob: 3d128f62e5aeed43b38f770f744af1b82fcbe533 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|