update ci workflow #61
This file contains hidden or 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: C/C++ CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest # Use latest runner to host the container | |
| container: | |
| image: ubuntu:20.04 | |
| options: --privileged # Needed for some build tools | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install deps | |
| run: | | |
| apt-get update | |
| apt-get install -y cmake g++ build-essential libyaml-cpp-dev libeigen3-dev | |
| - name: cmake | |
| run: | | |
| cmake -Bbuild | |
| cmake --build build -j |