Skip to content

Updated: Github-Action, Release binaries workflow #19

Updated: Github-Action, Release binaries workflow

Updated: Github-Action, Release binaries workflow #19

Workflow file for this run

name: CMake Config and Build STM32 Project
on:
push:
branches:
- '*'
pull_request:
branches: [ "master" ]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install GCC ARM toolchain
run: sudo apt-get update && sudo apt-get install -y gcc-arm-none-eabi
- name: Install Ninja Build Generator
run: sudo apt-get install -y ninja-build
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -G Ninja -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: CMake Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}