added .gitignore, and changed workflow to use cmake #14
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: Build STM32 Project | |
| on: | |
| push: | |
| branches: ["master","vscode"] | |
| pull_request: | |
| branches: ["master", "vscode"] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Install ARM GCC toolchain | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y gcc-arm-none-eabi | |
| - name: Configure project with CMake | |
| run: | | |
| # If you need a toolchain file, add: -DCMAKE_TOOLCHAIN_FILE=path/to/your/toolchain.cmake | |
| cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug | |
| - name: Build project with CMake | |
| run: cmake --build build --config Debug |