Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build all examples in CI #112

Merged
merged 1 commit into from
Feb 3, 2024
Merged
Show file tree
Hide file tree
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
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"
Loading