Skip to content

Commit

Permalink
Merge pull request #112 from rfuest/examples-ci
Browse files Browse the repository at this point in the history
Build all examples in CI
  • Loading branch information
almindor authored Feb 3, 2024
2 parents 16d4a97 + ffba59d commit a261359
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,34 @@ jobs:
run: |
cargo test
build-example-parallel-ili9341-rp-pico:
build-example:
name: Build example
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
example:
- parallel_ili9341_rp_pico
- spi-ili9486-esp32-c3
- spi-st7789-rpi-zero-w
include:
- target: thumbv6m-none-eabi
example: parallel_ili9341_rp_pico
- target: riscv32imc-unknown-none-elf
example: spi-ili9486-esp32-c3
- target: arm-unknown-linux-gnueabihf
example: spi-st7789-rpi-zero-w

steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
target: thumbv6m-none-eabi
target: ${{ matrix.target }}
- if: ${{ startsWith(matrix.target, 'arm') }}
run: |
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf
- run: cargo install flip-link
- name: Build example
run: cargo build
working-directory: ./mipidsi/examples/parallel_ili9341_rp_pico
- name: Build ${{ matrix.example }} example
run: cargo build --target ${{ matrix.target }}
working-directory: ./mipidsi/examples/${{ matrix.example }}
2 changes: 2 additions & 0 deletions mipidsi/examples/spi-ili9486-esp32-c3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ embedded-graphics = "0.8.0"
display-interface-spi = "0.4.1"
mipidsi = "0.7.1"
fugit = "0.3.7"

[workspace]
3 changes: 3 additions & 0 deletions mipidsi/examples/spi-st7789-rpi-zero-w/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[target.arm-unknown-linux-musleabihf]
linker = "arm-linux-musleabihf-gcc"

[target.arm-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"

0 comments on commit a261359

Please sign in to comment.