Skip to content

Workflow file for this run

name: Linux
on:
push:
branches:
- '*'
jobs:
build-linux:
name: build-linux
runs-on: ubuntu-latest
steps:

Check failure on line 12 in .github/workflows/ubuntu-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ubuntu-build.yml

Invalid workflow file

You have an error in your yaml syntax on line 12
- name: Install prerequisites
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy$LLVM_TAG main"
sudo apt update
# # Remove any base dist LLVM/Clang installations
# sudo apt remove -y \
# "libclang*" \
# "clang*" \
# "llvm*"
# Reinstall tagged versions
sudo apt install -y \
llvm-dev \
libclang-dev \
clang
- 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: 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