CMakeLists: optimize with -O3 instead of -O2 #637
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| pull_request: | |
| branches: [ master ] | |
| env: | |
| BUILD_TYPE: Release | |
| CMAKE_TOOLCHAIN_FILE: cmake/gcc-arm-none-eabi-8-2019-q3-update.cmake | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Install toolchain | |
| run: sudo apt-get -yq install gcc-arm-none-eabi | |
| - name: Configure CMake | |
| run: | | |
| cmake -B ${{github.workspace}}/build \ | |
| -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \ | |
| -DCMAKE_TOOLCHAIN_FILE=${{github.workspace}}/${{env.CMAKE_TOOLCHAIN_FILE}} | |
| - name: Build | |
| env: | |
| MAKEFLAGS: "-j" | |
| run: | | |
| cmake --build ${{github.workspace}}/build \ | |
| --config ${{env.BUILD_TYPE}} | |
| - name: Get current date | |
| id: date | |
| run: echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT | |
| - name: generate short hash | |
| id: vars | |
| run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| - name: Upload dev snapshot | |
| uses: actions/upload-artifact@v4 | |
| if: ${{ github.event_name != 'schedule'}} | |
| with: | |
| name: build_${{steps.date.outputs.date}}_${{steps.vars.outputs.sha_short}} | |
| path: ${{github.workspace}}/build/*_fw.bin |