Update the pico sdk to 2.2.0 (#12) #26
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: | |
| pull_request: | |
| push: | |
| release: | |
| types: | |
| - created | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| hardware: | |
| - 'adapedal' | |
| - 'keybow' | |
| steps: | |
| - name: Install GNU Arm Embedded Toolchain (arm-none-eabi-gcc) | |
| uses: carlosperate/arm-none-eabi-gcc-action@v1 | |
| with: | |
| release: '11.2-2022.02' | |
| - uses: actions/checkout@v3 | |
| - name: Checkout sdk | |
| run: git submodule update --init pico-sdk | |
| - name: Checkout pico-sdk submodules | |
| working-directory: ${{github.workspace}}/pico-sdk | |
| run: git submodule update --init | |
| - run: mkdir ${{github.workspace}}/build | |
| - name: Configure CMake | |
| shell: bash | |
| working-directory: ${{github.workspace}}/build | |
| run: cmake .. | |
| - name: Get core count | |
| id: core_count | |
| run : cat /proc/cpuinfo | grep processor | wc -l | |
| - name: Build | |
| working-directory: ${{github.workspace}}/build | |
| shell: bash | |
| run: cmake --build . --parallel ${{steps.core_count.outputs.output}} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.hardware }}.uf2 | |
| path: ${{github.workspace}}/build/*.uf2 |