From 507379a819fb7c783ca2269f4cfe4d714d3b256f Mon Sep 17 00:00:00 2001 From: luca zulian Date: Sat, 14 Sep 2024 09:39:31 +0200 Subject: [PATCH] Fix build link and broken ci (#17) --- .github/workflows/mcp23017-ci.yml | 51 ++++++++++++++++++++----------- Cargo.toml | 2 +- README.md | 2 +- 3 files changed, 35 insertions(+), 20 deletions(-) diff --git a/.github/workflows/mcp23017-ci.yml b/.github/workflows/mcp23017-ci.yml index a6d26c6..c89eea8 100644 --- a/.github/workflows/mcp23017-ci.yml +++ b/.github/workflows/mcp23017-ci.yml @@ -7,8 +7,6 @@ on: - '**' tags: - "*.*.*" - schedule: - - cron: 0 0 * * 0 env: RUSTFLAGS: '--deny warnings' @@ -19,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - rust: [stable, beta, nightly, 1.52.1, 1.49.0] + rust: [ stable, beta, nightly, 1.52.1 ] TARGET: - x86_64-unknown-linux-gnu - x86_64-unknown-linux-musl @@ -54,23 +52,17 @@ jobs: - run: ./ci/patch-no-std.sh if: ${{ ! contains(matrix.TARGET, 'x86_64') }} - - name: Build - uses: actions-rs/cargo@v1 - with: - command: build - args: --target=${{ matrix.TARGET }} - checks: name: Checks runs-on: ubuntu-latest strategy: matrix: - rust: [stable, beta] + rust: [ stable, beta ] TARGET: - x86_64-unknown-linux-gnu steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: profile: minimal @@ -90,24 +82,47 @@ jobs: command: fmt args: --all -- --check - - name: Clippy - uses: actions-rs/clippy-check@v1 + clippy: + name: Clippy + runs-on: ubuntu-latest + strategy: + matrix: + rust: [ stable ] + TARGET: + - x86_64-unknown-linux-gnu + - x86_64-unknown-linux-musl + - arm-unknown-linux-gnueabi # Raspberry Pi 1 + - armv7-unknown-linux-gnueabihf # Raspberry Pi 2, 3, etc + # Bare metal + - thumbv6m-none-eabi + - thumbv7em-none-eabi + - thumbv7em-none-eabihf + - thumbv7m-none-eabi + include: + - experimental: true + + steps: + - uses: actions/checkout@v4 + - uses: actions-rs/toolchain@v1 with: - args: --all-targets --all-features -- -D warnings - token: ${{ secrets.GITHUB_TOKEN }} + profile: minimal + toolchain: ${{ matrix.rust }} + target: ${{ matrix.TARGET }} + override: true + - run: cargo clippy --all-features -- --deny=warnings test: name: Tests runs-on: ubuntu-latest strategy: matrix: - rust: [stable, beta, nightly] - TARGET: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl] + rust: [ stable, beta, nightly ] + TARGET: [ x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl ] include: - rust: nightly experimental: true steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: actions-rs/toolchain@v1 with: profile: minimal diff --git a/Cargo.toml b/Cargo.toml index 863f4a0..aeb8252 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ categories = ["embedded", "hardware-support", "no-std"] keywords = ["hal", "IO"] license = "MIT" readme = "README.md" -repository = "https://github.com/lucazulian/mcp23017" +repository = "https://github.com/circuitry-maker/mcp23017" edition = "2018" exclude = [ "docs/", diff --git a/README.md b/README.md index fc80b7d..33f25e2 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > no_std driver for [MCP23017](http://ww1.microchip.com/downloads/en/DeviceDoc/20001952C.pdf) (16-Bit I2C I/O Expander with Serial Interface module) -[![Build Status](https://github.com/lucazulian/mcp23017/workflows/mcp23017-ci/badge.svg)](https://github.com/lucazulian/mcp23017/actions?query=workflow%3Amcp23017-ci) +[![Build Status](https://github.com/circuitry-maker/mcp23017/workflows/mcp23017-ci/badge.svg)](https://github.com/circuitry-maker/mcp23017/actions?query=workflow%3Amcp23017-ci) [![crates.io](https://img.shields.io/crates/v/mcp23017.svg)](https://crates.io/crates/mcp23017) [![Docs](https://docs.rs/mcp23017/badge.svg)](https://docs.rs/mcp23017)