build(deps): bump cfg-if from 1.0.3 to 1.0.4 #2443
Workflow file for this run
This file contains hidden or 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
| name: Pull Request | |
| on: pull_request | |
| env: | |
| CARGO_INCREMENTAL: 0 | |
| CARGO_NET_RETRY: 10 | |
| RUSTUP_MAX_RETRIES: 10 | |
| RUSTFLAGS: "-D warnings -D deprecated --cfg tokio_unstable -C debuginfo=0" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| meta: | |
| timeout-minutes: 5 | |
| runs-on: ${{ vars.LINKERD2_PROXY_RUNNER || 'ubuntu-24.04' }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - id: build | |
| uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 | |
| with: | |
| files: | | |
| .github/workflows/pr.yml | |
| justfile | |
| Dockerfile | |
| - id: actions | |
| uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 | |
| with: | |
| files: | | |
| .github/workflows/** | |
| .devcontainer/* | |
| - id: cargo | |
| uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 | |
| with: | |
| files_ignore: "Cargo.toml" | |
| files: | | |
| **/Cargo.toml | |
| - id: cargo-crates | |
| if: steps.cargo.outputs.any_changed == 'true' | |
| run: ./.github/list-crates.sh ${{ steps.cargo.outputs.all_changed_files }} | |
| - id: rust | |
| uses: tj-actions/changed-files@24d32ffd492484c1d75e0c0b894501ddb9d30d62 | |
| with: | |
| files: | | |
| **/*.rs | |
| Cargo.lock | |
| outputs: | |
| is_dependabot: ${{ github.actor == 'dependabot[bot]' }} | |
| any_changed: ${{ steps.build.outputs.any_changed == 'true' || steps.actions.outputs.any_changed == 'true' || steps.cargo.outputs.any_change == 'true' || steps.rust.outputs.any_changed == 'true' }} | |
| build_changed: ${{ steps.build.outputs.any_changed }} | |
| actions_changed: ${{ steps.build.outputs.any_changed == 'true' || steps.actions.outputs.any_changed == 'true' }} | |
| cargo_changed: ${{ steps.cargo.outputs.any_changed == 'true' }} | |
| cargo_crates: ${{ steps.cargo-crates.outputs.crates }} | |
| rust_changed: ${{ steps.build.outputs.any_changed == 'true' || steps.rust.outputs.any_changed == 'true' }} | |
| info: | |
| timeout-minutes: 3 | |
| needs: meta | |
| runs-on: ${{ vars.LINKERD2_PROXY_RUNNER || 'ubuntu-24.04' }} | |
| steps: | |
| - name: Info | |
| run: | | |
| echo 'github.actor: ${{ github.actor }}' | |
| echo 'github.event_name: ${{ github.event_name }}' | |
| echo 'github.event.pull_request.number: ${{ github.event.pull_request.number }}' | |
| echo 'needs.meta.outputs.is_dependabot: ${{ needs.meta.outputs.is_dependabot }}' | |
| echo 'needs.meta.outputs.any_changed: ${{ needs.meta.outputs.any_changed }}' | |
| echo 'needs.meta.outputs.actions_changed: ${{ needs.meta.outputs.actions_changed }}' | |
| echo 'needs.meta.outputs.cargo_changed: ${{ needs.meta.outputs.cargo_changed }}' | |
| echo 'needs.meta.outputs.cargo_crates: ${{ needs.meta.outputs.cargo_crates }}' | |
| echo 'needs.meta.outputs.rust_changed: ${{ needs.meta.outputs.rust_changed }}' | |
| actions: | |
| needs: meta | |
| if: needs.meta.outputs.actions_changed == 'true' | |
| runs-on: ${{ vars.LINKERD2_PROXY_RUNNER || 'ubuntu-24.04' }} | |
| steps: | |
| - uses: linkerd/dev/actions/setup-tools@v48 | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - run: just action-lint | |
| - run: just action-dev-check | |
| rust: | |
| needs: meta | |
| if: needs.meta.outputs.cargo_changed == 'true' || needs.meta.outputs.rust_changed == 'true' | |
| runs-on: ${{ vars.LINKERD2_PROXY_RUNNER || 'ubuntu-24.04' }} | |
| container: ghcr.io/linkerd/dev:v48-rust | |
| permissions: | |
| contents: read | |
| timeout-minutes: 20 | |
| steps: | |
| - run: git config --global --add safe.directory "$PWD" # actions/runner#2033 | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 | |
| - run: just fetch | |
| - run: cargo deny --all-features check bans licenses sources | |
| - run: just check-fmt | |
| - run: just clippy | |
| - run: just doc | |
| - run: just test --exclude=linkerd2-proxy --no-run | |
| - run: just test --exclude=linkerd2-proxy | |
| env: | |
| NEXTEST_RETRIES: 3 | |
| rust-crates: | |
| needs: meta | |
| if: needs.meta.outputs.cargo_changed == 'true' | |
| timeout-minutes: 20 | |
| runs-on: ${{ vars.LINKERD2_PROXY_RUNNER || 'ubuntu-24.04' }} | |
| container: ghcr.io/linkerd/dev:v48-rust | |
| strategy: | |
| matrix: | |
| crate: ${{ fromJson(needs.meta.outputs.cargo_crates) }} | |
| steps: | |
| - run: git config --global --add safe.directory "$PWD" # actions/runner#2033 | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - uses: Swatinem/rust-cache@f13886b937689c021905a6b90929199931d60db1 | |
| - run: just fetch | |
| - run: just check-crate ${{ matrix.crate }} | |
| linkerd-install: | |
| needs: meta | |
| if: needs.meta.outputs.cargo_changed == 'true' || needs.meta.outputs.rust_changed == 'true' | |
| timeout-minutes: 20 | |
| runs-on: ${{ vars.LINKERD2_PROXY_RUNNER || 'ubuntu-24.04' }} | |
| env: | |
| WAIT_TIMEOUT: 2m | |
| steps: | |
| - uses: linkerd/dev/actions/setup-tools@v48 | |
| - name: scurl https://run.linkerd.io/install-edge | sh | |
| run: | | |
| scurl https://run.linkerd.io/install-edge | sh | |
| echo "PATH=$PATH:$HOME/.linkerd2/bin" >> "$GITHUB_ENV" | |
| export PATH="$PATH:$HOME/.linkerd2/bin" | |
| tag=$(linkerd version --client --short) | |
| echo "linkerd $tag" | |
| echo "LINKERD_TAG=$tag" >> "$GITHUB_ENV" | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - run: just docker | |
| - run: just k3d-create | |
| - run: just k3d-load-linkerd | |
| - run: just linkerd-install | |
| - run: just linkerd-check-control-plane-proxy | |
| env: | |
| TMPDIR: ${{ runner.temp }} | |
| ship-it: | |
| timeout-minutes: 3 | |
| needs: [meta, actions, rust, rust-crates, linkerd-install] | |
| if: always() | |
| runs-on: ${{ vars.LINKERD2_PROXY_RUNNER || 'ubuntu-24.04' }} | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Results | |
| run: | | |
| echo 'needs.actions.result: ${{ needs.actions.result }}' | |
| echo 'needs.rust.result: ${{ needs.rust.result }}' | |
| echo 'needs.rust-crates.result: ${{ needs.rust-crates.result }}' | |
| echo 'needs.linkerd-install.result: ${{ needs.linkerd-install.result }}' | |
| - name: Verify jobs | |
| # All jobs must succeed or be skipped. | |
| if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') | |
| run: exit 1 | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| if: needs.meta.outputs.is_dependabot == 'true' && needs.meta.outputs.any_changed == 'true' | |
| - name: "Merge dependabot changes" | |
| if: needs.meta.outputs.is_dependabot == 'true' && needs.meta.outputs.any_changed == 'true' | |
| run: gh pr merge '${{ github.event.pull_request.number }}' --auto --squash | |
| env: | |
| GH_TOKEN: ${{ github.token }} |