Skip to content

github: update actions to latest versions #13

github: update actions to latest versions

github: update actions to latest versions #13

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