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
68 changes: 59 additions & 9 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
ref: 'next'
ref: "next"
- name: Cleanup large tools for build space
uses: ./.github/actions/cleanup-runner
- name: Install RocksDB
Expand All @@ -42,7 +42,7 @@ jobs:
steps:
- uses: actions/checkout@v6
with:
ref: 'next'
ref: "next"
- name: Cleanup large tools for build space
uses: ./.github/actions/cleanup-runner
- name: Install RocksDB
Expand All @@ -54,15 +54,65 @@ jobs:
- name: Check all feature combinations
run: make check-features

# Check that our MSRV complies with our specified rust version.
workspace-packages:
name: list packages
runs-on: ubuntu-latest
outputs:
packages: ${{ steps.package-matrix.outputs.packages }}
# Deliberately use stable rust instead of the toolchain.toml version.
# This prevents installing the toolchain version which isn't crucial for this operation.
env:
RUSTUP_TOOLCHAIN: stable
steps:
- uses: actions/checkout@v6
with:
ref: "next"
- name: Extract workspace packages
id: package-matrix
run: |
PACKAGES=$(cargo metadata --format-version 1 --no-deps \
| jq -c '
.workspace_members as $members
| .packages
| map(select(.id as $id | $members | index($id)))
| map(.name)
')

echo "packages=$PACKAGES" >> "$GITHUB_OUTPUT"

msrv:
name: msrv check
runs-on: ubuntu-24.04
needs: workspace-packages
runs-on: ubuntu-latest
strategy:
matrix:
package: ${{ fromJson(needs.workspace-packages.outputs.packages) }}
# Deliberately use stable rust instead of the toolchain.toml version.
# This is prevents issues where e.g. `cargo-msrv` requires a newer version of rust than the toolchain.toml version.
env:
RUSTUP_TOOLCHAIN: stable
steps:
- uses: actions/checkout@v6
with:
ref: 'next'
- name: check
ref: "next"
- name: Install binstall
uses: cargo-bins/cargo-binstall@main
- name: Install cargo-msrv
run: cargo binstall --no-confirm cargo-msrv
- name: Get manifest path for package
id: pkg
run: |
MANIFEST_PATH=$(cargo metadata --format-version 1 --no-deps \
| jq -r '
.packages[]
| select(.name == "${{ matrix.package }}")
| .manifest_path
')
echo "manifest_path=$MANIFEST_PATH" >> "$GITHUB_OUTPUT"
- name: Show package info
run: |
echo "Package: ${{ matrix.package }}"
echo "Manifest path: ${{ steps.pkg.outputs.manifest_path }}"
cargo msrv show --manifest-path "${{ steps.pkg.outputs.manifest_path }}"
- name: Check MSRV
run: |
export PATH="$HOME/.cargo/bin:$PATH"
./scripts/check-msrv.sh
cargo msrv verify --manifest-path "${{ steps.pkg.outputs.manifest_path }}"
153 changes: 0 additions & 153 deletions scripts/check-msrv.sh

This file was deleted.

Loading