Update documentation #18
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 Firmware | |
| on: [push] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout source | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Cache Toolchain | |
| id: cache-toolchain | |
| uses: actions/cache@v4 | |
| env: | |
| cache-name: cache-toolchain | |
| with: | |
| path: ~/toolchains/ | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('util/install-toolchain.sh') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-${{ env.cache-name }}- | |
| ${{ runner.os }}-build- | |
| ${{ runner.os }}- | |
| - if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }} | |
| name: Download toolchain | |
| run: ./util/install-toolchain.sh | |
| - name: Build Firmware | |
| run: make -k all | |
| env: | |
| PREFIX: ~/toolchains/gcc-arm-embedded/bin/arm-none-eabi- | |
| - name: Archive Firmware | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: firmware-bin | |
| path: build/*.bin |