feat benchmark: added system freq informations #27
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 ubuntu gcc | |
on: [push, pull_request] | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
name: Test on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: install dependencies | |
run: | | |
sudo apt update | |
sudo apt install \ | |
cmake make gcc gcc-arm-none-eabi | |
- name: initialization submodule | |
run: git submodule update --init | |
- name: configure cmake | |
run: | | |
cmake -B ${{github.workspace}}/build \ | |
--toolchain ${{github.workspace}}/cmake/toolchain.cmake \ | |
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | |
-D HOST_C_COMPILER=/bin/gcc \ | |
-D ENABLE_EXAMPLES=ON | |
- name: make | |
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} |