add root isntall permission #13
Workflow file for this run
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
name: "CMake: Build and Test" | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Deps | |
shell: bash | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libeigen3-dev | |
git clone https://github.com/google/glog.git | |
cd glog | |
cmake -S . -B build -G "Unix Makefiles" | |
cmake --build build | |
sudo cmake --install build | |
- name: Configure CMake | |
shell: bash | |
run: | | |
cd ${{github.workspace}} | |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | |
# TODO(lschmid) messes with finding glog somehow | |
# - name: Build | |
# shell: bash | |
# run: cmake --build ${{github.workspace}}/build | |
# - name: Test | |
# working-directory: ${{github.workspace}}/build | |
# shell: bash | |
# run: ctest -C ${{env.BUILD_TYPE}} |