Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
- name: Pin versions for MSRV
if: "${{ matrix.rust == '1.64.0' }}"
run: |
cargo update -p regex --precise 1.8.4
- name: Build
run: cargo build --verbose
- name: Run tests
Expand Down
67 changes: 67 additions & 0 deletions .github/workflows/latest-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Check Latest Dependencies
on:
schedule:
# Chosen so that it runs right before the international date line experiences the weekend.
# Since we're open source, that means globally we should be aware of it right when we have the most
# time to fix it.
#
# Sorry if this ruins your weekend, future maintainer...
- cron: '0 12 * * FRI'
workflow_dispatch: # For running manually
pull_request:
paths:
- '.github/workflows/latest-deps.yaml'

env:
CARGO_TERM_COLOR: always
HOST: x86_64-unknown-linux-gnu
RUSTFLAGS: "-D warnings"
MSRV: 1.64.0

jobs:
latest_deps_stable:
runs-on: ubuntu-latest
name: Check Latest Dependencies on Stable
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Setup Mold Linker
uses: rui314/setup-mold@v1
- name: Setup Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Ensure latest dependencies
run: cargo update
- name: Run Tests
run: cargo nextest run

latest_deps_msrv:
runs-on: ubuntu-latest
name: Check Latest Dependencies on MSRV
steps:
- name: Check Out Repo
uses: actions/checkout@v4
- name: Install Stable Rust for Update
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Setup Mold Linker
uses: rui314/setup-mold@v1
- name: Setup Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Ensure latest dependencies
# The difference is here between this and `latest_deps_stable`
run: CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS="fallback" cargo update
- name: Install MSRV Rust for Test
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.MSRV }}
- name: Run Tests
run: cargo nextest run
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/target
**/*.rs.bk
Cargo.lock

# IDE-related
tags
Expand Down
Loading
Loading