Skip to content

Commit

Permalink
MSRV 1.68 (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede authored Sep 15, 2023
1 parent 75386f4 commit aaedb9c
Show file tree
Hide file tree
Showing 31 changed files with 246 additions and 236 deletions.
5 changes: 0 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
updates:
- package-ecosystem: cargo
directory: /
schedule:
interval: weekly
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
39 changes: 17 additions & 22 deletions .github/workflows/ci-post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ jobs:
matrix:
target:
- { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu }
version:
- nightly

name: ${{ matrix.target.name }} / ${{ matrix.version }}
name: ${{ matrix.target.name }} / nightly
runs-on: ${{ matrix.target.os }}

services:
Expand All @@ -32,13 +30,14 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install Rust (${{ matrix.version }})
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: ${{ matrix.version }}
toolchain: nightly

- uses: taiki-e/cache-cargo-install-action@v1
with: { tool: cargo-hack }
- uses: taiki-e/[email protected]
with:
tool: cargo-hack

- name: check minimal
run: cargo ci-min
Expand All @@ -61,30 +60,26 @@ jobs:
build_and_test_other_nightly:
strategy:
fail-fast: false
# prettier-ignore
matrix:
target:
- { name: macOS, os: macos-latest, triple: x86_64-apple-darwin }
- {
name: Windows,
os: windows-latest,
triple: x86_64-pc-windows-msvc,
}
version:
- nightly

name: ${{ matrix.target.name }} / ${{ matrix.version }}
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc }

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

steps:
- uses: actions/checkout@v3

- name: Install Rust (${{ matrix.version }})
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: ${{ matrix.version }}
toolchain: nightly

- uses: taiki-e/cache-cargo-install-action@v1
with: { tool: cargo-hack }
- uses: taiki-e/[email protected]
with:
tool: cargo-hack

- name: check minimal
run: cargo ci-min
Expand Down
70 changes: 37 additions & 33 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: CI

on:
pull_request: {}
push: { branches: [master] }
pull_request:
types: [opened, synchronize, reopened]
merge_group:
types: [checks_requested]
push:
branches: [master]

permissions: { contents: read }

Expand All @@ -18,10 +22,10 @@ jobs:
target:
- { name: Linux, os: ubuntu-latest, triple: x86_64-unknown-linux-gnu }
version:
- '1.60' # MSRV
- stable
- { name: msrv, version: 1.68.0 }
- { name: stable, version: stable }

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

services:
Expand All @@ -39,19 +43,20 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install Rust (${{ matrix.version }})
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Rust (${{ matrix.version.name }})
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: ${{ matrix.version }}
toolchain: ${{ matrix.version.version }}

- name: Install cargo-hack
uses: taiki-e/cache-cargo-install-action@v1
with: { tool: cargo-hack }
uses: taiki-e/[email protected]
with:
tool: cargo-hack

- name: workaround MSRV issues
if: matrix.version != 'stable'
run: |
cargo update -p=time:0.3.20 --precise=0.3.16
# - name: workaround MSRV issues
# if: matrix.version.name == 'msrv'
# run: |
# cargo update -p=time:0.3.20 --precise=0.3.16

- name: check minimal
run: cargo ci-min
Expand All @@ -75,36 +80,34 @@ jobs:
strategy:
fail-fast: false
matrix:
# prettier-ignore
target:
- { name: macOS, os: macos-latest, triple: x86_64-apple-darwin }
- {
name: Windows,
os: windows-latest,
triple: x86_64-pc-windows-msvc,
}
- { name: Windows, os: windows-latest, triple: x86_64-pc-windows-msvc }
version:
- '1.60' # MSRV
- stable
- { name: msrv, version: 1.68.0 }
- { name: stable, version: stable }

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

steps:
- uses: actions/checkout@v3

- name: Install Rust (${{ matrix.version }})
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Install Rust (${{ matrix.version.name }})
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: ${{ matrix.version }}
toolchain: ${{ matrix.version.version }}

- name: Install cargo-hack
uses: taiki-e/cache-cargo-install-action@v1
with: { tool: cargo-hack }
uses: taiki-e/[email protected]
with:
tool: cargo-hack

- name: workaround MSRV issues
if: matrix.version != 'stable'
run: |
cargo update -p=time:0.3.20 --precise=0.3.16
# - name: workaround MSRV issues
# if: matrix.version.name == 'msrv'
# run: |
# cargo update -p=time:0.3.20 --precise=0.3.16

- name: check minimal
run: cargo ci-min
Expand All @@ -131,8 +134,9 @@ jobs:
- uses: actions/checkout@v3

- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1
with: { toolchain: nightly }
uses: actions-rust-lang/[email protected]
with:
toolchain: nightly

- name: doc tests
timeout-minutes: 40
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Coverage

on:
push: { branches: [master] }
push:
branches: [master]

permissions: { contents: read }

Expand All @@ -24,8 +25,9 @@ jobs:
- uses: actions/checkout@v3

- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1
with: { toolchain: nightly }
uses: actions-rust-lang/[email protected]
with:
toolchain: nightly

- name: Generate coverage file
run: |
Expand All @@ -34,4 +36,5 @@ jobs:
- name: Upload to Codecov
uses: codecov/codecov-action@v3
with: { file: cobertura.xml }
with:
file: cobertura.xml
19 changes: 11 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with:
toolchain: nightly
components: rustfmt
Expand All @@ -29,11 +29,12 @@ jobs:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with: { components: clippy }
uses: actions-rust-lang/[email protected]
with:
components: clippy

- name: Check with Clippy
run: cargo clippy --workspace --tests --all-features
run: cargo clippy --workspace --tests --all-features -- -A unknown_lints

public-api-diff:
runs-on: ubuntu-latest
Expand All @@ -47,12 +48,14 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1
with: { toolchain: nightly }
uses: actions-rust-lang/[email protected]
with:
toolchain: nightly

- name: Install cargo-public-api
uses: taiki-e/cache-cargo-install-action@v1
with: { tool: cargo-public-api }
uses: taiki-e/[email protected]
with:
tool: cargo-public-api

- name: generate API diff
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upload-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v3

- name: Install Rust (nightly)
uses: actions-rust-lang/setup-rust-toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1.5.0
with: { toolchain: nightly }

- name: Build Docs
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ members = [
"actix-web-httpauth",
]

# TODO(MSRV 1.64)
# [workspace.package]
# edition = "2018"
# rust-version = "1.60"
[workspace.package]
license = "MIT OR Apache-2.0"
edition = "2021"
rust-version = "1.68"

[patch.crates-io]
actix-cors = { path = "./actix-cors" }
Expand Down
Loading

0 comments on commit aaedb9c

Please sign in to comment.