fanuc_ucl 1.5.4

Unofficial Control Library for FANUC Robots
Documentation
name: Check

on:
  push:
    branches: [main]
  pull_request:

jobs:
  check:
    strategy:
      fail-fast: false
      matrix:
        platform:
          - { os: macos-latest, target: aarch64-apple-darwin }
          - { os: windows-latest, target: x86_64-pc-windows-msvc }
          - { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
          - { os: ubuntu-latest, target: x86_64-unknown-linux-musl }

    runs-on: ${{ matrix.platform.os }}
    name: ${{ matrix.platform.target }}

    steps:
      - uses: actions/checkout@v4

      - uses: dtolnay/rust-toolchain@stable
        with:
          targets: ${{ matrix.platform.target }}
          components: clippy

      - name: Install musl tools
        if: endsWith(matrix.platform.target, 'musl')
        run: sudo apt-get update && sudo apt-get install -y musl-tools

      - uses: actions/setup-python@v5
        if: matrix.platform.target == 'x86_64-unknown-linux-gnu'
        with:
          python-version: "3.10"

      - uses: Swatinem/rust-cache@v2
        with:
          key: ${{ matrix.platform.target }}

      - name: Cargo check
        run: cargo check --target ${{ matrix.platform.target }}

      - name: Clippy
        run: cargo clippy --target ${{ matrix.platform.target }} -- -D warnings

      - name: Cargo check (-F py)
        if: matrix.platform.target == 'x86_64-unknown-linux-gnu'
        run: cargo check --target ${{ matrix.platform.target }} -F py

      - name: Clippy (-F py)
        if: matrix.platform.target == 'x86_64-unknown-linux-gnu'
        run: cargo clippy --target ${{ matrix.platform.target }} -F py -- -D warnings

      - name: Tests
        run: cargo test --target ${{ matrix.platform.target }}