-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4026338
commit bc19c26
Showing
1 changed file
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,31 @@ jobs: | |
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y mesa-utils xvfb xorg-dev libglu1-mesa-dev glslang-dev glslang-tools | ||
#xvfb-run glxinfo | ||
- 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: Work around broken packaging | ||
run: | | ||
git clone [email protected]:include-what-you-use/include-what-you-use.git | ||
cd include-what-you-use.git | ||
- 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: | | ||
|