Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: build

on:
push:
branches: [master]
pull_request:

jobs:
simulator:
name: simulator (${{ matrix.os }}, ${{ matrix.cc }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-latest, cc: gcc }
- { os: ubuntu-latest, cc: clang }
- { os: macos-latest, cc: clang }
steps:
- uses: actions/checkout@v4
- name: Build the firmware against the display model
run: make CC=${{ matrix.cc }}
- name: Compare every frame with the recorded hashes
run: make check
- name: Render one turn of the model
run: make gif
- name: Measure the rendering speed
run: make bench
- uses: actions/upload-artifact@v4
with:
name: spin-${{ matrix.os }}-${{ matrix.cc }}
path: out/spin.gif

cortex-m0plus:
name: size on Cortex-M0+
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install the ARM cross compiler
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends gcc-arm-none-eabi libnewlib-arm-none-eabi
- name: Compile the firmware for the Cortex-M0+ and report its size
run: make size
Loading