Skip to content

iwyu

iwyu #195

Workflow file for this run

name: Linux
on:
push:
branches:
- '*'
jobs:
build-linux:
name: build-linux
runs-on: ubuntu-latest
steps:
- name: setup
run: |
sudo apt-get update
sudo apt-get install -y mesa-utils xvfb xorg-dev libglu1-mesa-dev glslang-dev glslang-tools
- name: Capture LLVM major version
run: |
echo "LLVM_MAJOR=$(ls -1d /usr/lib/llvm-* | sort | tail -n1 | sed 's/.*llvm-//')" >> $GITHUB_ENV
- name: Work around broken packaging
run: |
sudo touch /usr/lib/llvm-$LLVM_MAJOR/lib/libclang-$LLVM_MAJOR.so.1
- name: Checkout repo
uses: actions/checkout@v4
with:
repository: include-what-you-use/include-what-you-use
- name: Install ninja-build tool
uses: seanmiddleditch/gha-setup-ninja@v5
- name: Build include-what-you-use
run: |
mkdir build
cd ./build
cmake -G Ninja \
-DCMAKE_EXPORT_COMPILE_COMMANDS=on \
-DCMAKE_C_COMPILER=clang$LLVM_TAG \
-DCMAKE_CXX_COMPILER=clang++$LLVM_TAG \
-DCMAKE_INSTALL_PREFIX=./ \
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=on \
../
ninja
- uses: actions/checkout@v3
- name: set up engine dependencies
run: |
git submodule init
git submodule update
#cd thirdparty/glew
#make extensions
- name: build
run: |
mkdir build
cmake -DBUILD_SAMPLES=OFF -DBUILD_TESTS=ON -DOPENGL_SHADER_OUTPUT=ON -S . -B build
cd build
make
- name: test
continue-on-error: true
run: |
cd build/tests
mkdir glslang
xvfb-run -a -e errors ./limitless-tests
cat errors
- name: shader glslang validation
run: |
cd build/tests
cd glslang
for file in ./*; do glslangValidator -C "$file"; done