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
24 changes: 14 additions & 10 deletions .github/workflows/minimal-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,20 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ inputs.nightly }}
# Replace Cargo.toml at the workspace-level with a stub which still allows workspace-level configs to function
- run: |
cat > ../Cargo.toml <<EOF
[workspace]
resolver = "3"
members = ["$(pwd)"]
[workspace.lints]
EOF
- run: cargo update -Z minimal-versions
- run: ${{ inputs.nightly-cmd }}
- name: Remove other members from the workspace
run: sed -z -E
"s/members = \\[([A-Za-z0-9_,-]|\"|\\n|\\s)*\\]/\
members = [\"${{ inputs.working-directory }}\"]/g"
-i ../Cargo.toml
- run: cat ../Cargo.toml
- name: Check replacement
run: grep -q
"members = \\[\"${{ inputs.working-directory }}\"\\]"
../Cargo.toml
- name: Generate Cargo.lock with minimal versions
run: cargo update -Z minimal-versions
- name: Run additional Nightly command
run: ${{ inputs.nightly-cmd }}
# Perform tests
- uses: dtolnay/rust-toolchain@master
with:
Expand Down
2 changes: 0 additions & 2 deletions .yamllint.yaml

This file was deleted.