Skip to content

Commit

Permalink
Fix build link and broken ci (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucazulian authored Sep 14, 2024
1 parent ff87cbe commit 507379a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 20 deletions.
51 changes: 33 additions & 18 deletions .github/workflows/mcp23017-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
- '**'
tags:
- "*.*.*"
schedule:
- cron: 0 0 * * 0

env:
RUSTFLAGS: '--deny warnings'
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 507379a

Please sign in to comment.