Skip to content

Commit

Permalink
Install CMake & Ninja
Browse files Browse the repository at this point in the history
  • Loading branch information
MorganCaron committed Feb 27, 2024
1 parent c1d0fe1 commit f71512b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,27 @@ jobs:
alias pull='fetch && git pull'
pwd
sudo apt install cmake
git clone https://github.com/ninja-build/ninja.git
pushd ninja || exit
git checkout release
pull
if ! [ -d build ]; then
mkdir build
fi
cmake -Bbuild
cmake --build build
if ! [ -e build/ninja ]; then
echo "Error during Ninja installation"
exit 1
fi
sudo cp build/ninja /usr/bin/ninja
popd || exit
ninja --version
echo "Ninja installé"
mkdir llvm
pushd llvm || exit
git clone https://github.com/llvm/llvm-project.git
Expand Down

0 comments on commit f71512b

Please sign in to comment.