rppal 0.22.1

Interface for the Raspberry Pi's GPIO, I2C, PWM, SPI and UART peripherals.
Documentation
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