Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Headers.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Petit <kevin.petit@arm.com>2021-06-23 19:36:33 +0300
committerKevin Petit <kevin.petit@arm.com>2021-06-23 20:21:33 +0300
commit292387ae143e2712b14d79a7a48bd784fcf070c8 (patch)
tree859ecd2adde3f8ffde9b49f902ce90fc0f2ac6e9 /.github
parentf95c3b3761ee1b1903f54ae69b526ed6f0edc3b9 (diff)
Add CI using Github actions and update README
- Run on Linux, macOS and Windows - Check that the headers install works - Check the example can be built - Check the header generation tool can be built - Generate headers and check they match the committed files - Mention the requirement to install the header generation tool in README Change-Id: I8385b3931064ad677d7aa49b2514cea9b4602168 Signed-off-by: Kevin Petit <kevin.petit@arm.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/presubmit.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml
new file mode 100644
index 0000000..d9c25fa
--- /dev/null
+++ b/.github/workflows/presubmit.yml
@@ -0,0 +1,37 @@
+name: Presubmit
+on: [push, pull_request]
+
+jobs:
+ build:
+ name: Build ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-latest, macos-latest, windows-latest]
+ steps:
+ - uses: actions/checkout@v2
+ - name: Install Ubuntu packages
+ if: matrix.os == 'ubuntu-latest'
+ run: sudo apt install -y dos2unix
+ - name: Install macOS packages
+ if: matrix.os == 'macos-latest'
+ run: brew install dos2unix
+ - name: Build
+ run: |
+ mkdir build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=install ..
+ cmake --build . --target install
+ - name: Build spec tools
+ run: |
+ cd tools/buildHeaders
+ mkdir build
+ cd build
+ cmake ..
+ cmake --build . --target install
+ - name: Build headers
+ run: |
+ cd tools/buildHeaders
+ ./bin/makeHeaders
+ - name: Check generated headers
+ run: git diff --exit-code