diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a7e407704..b0e290209 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,16 +1,17 @@ on: - push: - branches: [ staging, trying, master ] - pull_request: + push: # Run CI for all branches except GitHub merge queue tmp branches + branches-ignore: + - "gh-readonly-queue/**" + pull_request: # Run CI for PRs on any branch + merge_group: # Run CI for the GitHub merge queue -name: CI +name: Build env: RUSTFLAGS: '--deny warnings' jobs: - ci-linux: - name: CI + build: runs-on: ubuntu-latest strategy: matrix: @@ -18,24 +19,24 @@ jobs: FEATURES: ["", "--features=async-tokio", "--features=mio-evented"] TARGET: - aarch64-unknown-linux-gnu + - aarch64-unknown-linux-musl - arm-unknown-linux-gnueabi + - arm-unknown-linux-gnueabihf - armv7-unknown-linux-gnueabihf - i686-unknown-linux-gnu - i686-unknown-linux-musl - - mips-unknown-linux-gnu - - mips64-unknown-linux-gnuabi64 - - mips64el-unknown-linux-gnuabi64 - - mipsel-unknown-linux-gnu + # - loongarch64-unknown-linux-gnu - powerpc-unknown-linux-gnu # - powerpc64-unknown-linux-gnu - powerpc64le-unknown-linux-gnu + - riscv64gc-unknown-linux-gnu - s390x-unknown-linux-gnu - x86_64-unknown-linux-gnu - x86_64-unknown-linux-musl include: # MSRV - - rust: 1.46.0 + - rust: 1.65.0 TARGET: x86_64-unknown-linux-gnu # Test nightly but don't fail @@ -58,37 +59,11 @@ jobs: command: build args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }} - - name: Test - uses: actions-rs/cargo@v1 - with: - use-cross: true - command: test - args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }} - - ci-linux-msrv: - name: CI - runs-on: ubuntu-latest - strategy: - matrix: - rust: [1.46.0] - FEATURES: ["", "--features=async-tokio", "--features=mio-evented"] - TARGET: - - x86_64-unknown-linux-gnu - - steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.rust }} - target: ${{ matrix.TARGET }} - override: true - - - name: Build + - name: Build all features uses: actions-rs/cargo@v1 with: command: build - args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }} + args: --target=${{ matrix.TARGET }} --all-features - name: Test uses: actions-rs/cargo@v1 @@ -97,29 +72,12 @@ jobs: command: test args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }} - ci-macos: - name: CI - runs-on: macos-11 - - strategy: - matrix: - rust: [stable, 1.46.0] - TARGET: [x86_64-apple-darwin] - - steps: - - uses: actions/checkout@v2 - - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.rust }} - target: ${{ matrix.TARGET }} - override: true - - - uses: actions-rs/cargo@v1 + - name: Test all features + uses: actions-rs/cargo@v1 with: - command: build - args: --target=${{ matrix.TARGET }} + use-cross: true + command: test + args: --target=${{ matrix.TARGET }} --all-features checks: runs-on: ubuntu-latest @@ -152,7 +110,7 @@ jobs: - uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: 1.46.0 + toolchain: 1.65.0 components: clippy - uses: actions-rs/clippy-check@v1 diff --git a/CHANGELOG.md b/CHANGELOG.md index c09823dfe..f6e3b985d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [master] - Unreleased +### Changed + +- Minimum supported Rust version updated to 1.65.0 + ## [0.6.1] - 2021-11-22 ### Changed diff --git a/README.md b/README.md index 3195447ee..1d1a320d1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ sysfs_gpio [![Build Status](https://github.com/rust-embedded/rust-sysfs-gpio/workflows/CI/badge.svg)](https://github.com/rust-embedded/rust-sysfs-gpio/actions) [![Version](https://img.shields.io/crates/v/sysfs-gpio.svg)](https://crates.io/crates/sysfs-gpio) -![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.46+-blue.svg) +![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.65+-blue.svg) [![License](https://img.shields.io/crates/l/sysfs-gpio.svg)](https://github.com/rust-embedded/rust-sysfs-gpio/blob/master/README.md#license) - [API Documentation](https://docs.rs/sysfs_gpio) @@ -85,7 +85,7 @@ The following features are planned for the library: ## Minimum Supported Rust Version (MSRV) -This crate is guaranteed to compile on stable Rust 1.46.0 and up. It *might* +This crate is guaranteed to compile on stable Rust 1.65.0 and up. It *might* compile with older versions but that may change in any new patch release. ## Cross Compiling