Create build.yml #5
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 | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Prepare | |
| run: | | |
| rustup +nightly target add thumbv8m.main-none-eabihf | |
| cargo install flip-link | |
| export PICO_SDK_PATH=$PWD/pico-sdk | |
| mkdir -p picotool/build | |
| cd picotool/build | |
| cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 .. | |
| make | |
| - name: Build | |
| run: make image |