Skip to content

Update to embedded-hal 1.0. #66

Update to embedded-hal 1.0.

Update to embedded-hal 1.0. #66

Workflow file for this run

name: CI
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
include:
- target: "armv7-unknown-linux-gnueabihf"
linker: "arm-linux-gnueabihf-gcc"
dependencies: "crossbuild-essential-armhf"
- target: "aarch64-unknown-linux-gnu"
linker: "aarch64-linux-gnu-gcc"
dependencies: "crossbuild-essential-arm64"
- target: "armv7-unknown-linux-musleabihf"
linker: "arm-linux-gnueabihf-gcc"
dependencies: "crossbuild-essential-armhf"
- target: "aarch64-unknown-linux-musl"
linker: "aarch64-linux-gnu-gcc"
dependencies: "crossbuild-essential-arm64"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install target
run: rustup target add ${{ matrix.target }}
- name: Install dependencies
run: sudo apt-get -qq install ${{ matrix.dependencies }}
- name: Build (debug)
run: cargo build --all-features --target ${{ matrix.target }} --config target.${{ matrix.target }}.linker=\"${{ matrix.linker }}\"
- name: Build (release)
run: cargo build --all-features --target ${{ matrix.target }} --config target.${{ matrix.target }}.linker=\"${{ matrix.linker }}\" --release