Release/v2.207.0 light metrics #52
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check each crate independently. Helps to catch dependency issues. | |
# | |
# Code changes are exercised via the `test` and `lint` workflows. This workflow just checks that | |
# each crate's `Cargo.toml` is configured sufficiently so that each crate can be compiled on its | |
# own. | |
name: check-each | |
permissions: | |
contents: read | |
on: | |
pull_request: | |
paths: | |
- "**/Cargo.toml" | |
- "**/*.rs" | |
- .github/workflows/check-each.yml | |
- justfile | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_NET_RETRY: 10 | |
RUSTUP_MAX_RETRIES: 10 | |
RUSTFLAGS: "-D warnings -A deprecated" | |
jobs: | |
list-changed-crates: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
container: docker://ghcr.io/linkerd/dev:v40-rust | |
steps: | |
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 | |
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033 | |
- uses: tj-actions/changed-files@c9124514c375de5dbb9697afa6f2e36a236ee58c | |
id: changed-files | |
with: | |
files: | | |
**/Cargo.toml | |
**/*.rs | |
.github/workflows/check-each.yml | |
- name: List changed crates | |
id: changed-crates | |
run: ./.github/list-crates.sh '${{ steps.changed-files.outputs.all_changed_files }}' | |
outputs: | |
crates: ${{ steps.changed-crates.outputs.crates }} | |
check-each: | |
needs: list-changed-crates | |
timeout-minutes: 20 | |
runs-on: ubuntu-latest | |
container: ghcr.io/linkerd/dev:v40-rust | |
strategy: | |
matrix: | |
crate: ${{ fromJson(needs.list-changed-crates.outputs.crates) }} | |
steps: | |
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 | |
- run: git config --global --add safe.directory "$PWD" # actions/runner#2033 | |
- run: just fetch | |
- run: just check-crate ${{ matrix.crate }} | |