lpc55-hal 0.5.0

Hardware Abstraction Layer (HAL) for the NXP LPC55S6x ARM Cortex-33 microcontrollers
Documentation
name: CI

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        target:
          - thumbv7em-none-eabi
          - x86_64-unknown-linux-gnu

    steps:
      - uses: actions/checkout@v4

      - name: Install build dependencies
        shell: bash
        run: |
          env && pwd && sudo apt-get update -y -qq && sudo apt-get install -y -qq llvm libc6-dev-i386 libclang-dev

      - uses: fiam/arm-none-eabi-gcc@v1
        with:
          release: "9-2020-q2"

      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: stable
          target: ${{ matrix.target }}
          override: true
          components: llvm-tools-preview

      - name: Build
        run: cargo build --release --verbose --target ${{ matrix.target }}

      - name: Lint
        run: cargo clippy --release --verbose --target ${{ matrix.target }} -- -D warnings

      - name: fmt
        run: cargo fmt --check

      - name: Build examples
        run: cargo build --verbose --examples --target ${{ matrix.target }}
        if: matrix.target != 'x86_64-unknown-linux-gnu'

  build-msrv:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: "1.74"
          override: true

      - name: Build
        # don’t build with littlefs2 feature as it requires a newer Rust version
        run: cargo build --target x86_64-unknown-linux-gnu