[add] : CI jobs #1
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: Build | |
on: | |
push: | |
branches: | |
- main | |
- ci | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up dependencies | |
run: | | |
sudo apt-get -y update | |
sudo apt-get -y install -qq build-essential expect sudo ccache | |
sudo apt-get -y install clang-format make check lcov gcovr | |
sudo apt install -y glibc-source gcc-arm-none-eabi | |
sudo apt-get -y update | |
sudo apt-get -y upgrade | |
- name: Build main and tests | |
run: | | |
mkdir -p ../../Code/build | |
make main -C ../../Code/ | |
make tests -C ../../Code/ |