Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
olix0r committed Mar 10, 2024
1 parent 70bbf97 commit 6b9f839
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,31 @@ jobs:
- id: cargo
uses: tj-actions/changed-files@800a2825992141ddde1a8bca8ad394cec34d3188
with:
files: |
**/Cargo.toml
files: '**/Cargo.toml'
ignored_files: 'Cargo.toml'
- id: rust
uses: tj-actions/changed-files@800a2825992141ddde1a8bca8ad394cec34d3188
with:
files: |
**/*.rs
files: '**/*.rs'
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- id: cargo-crates
if: steps.cargo.outputs.any_changed
run: ./.github/list-crates.sh ${{ steps.cargo.outputs.all_changed_files }}
- run: |
echo 'build: ${{ steps.build.outputs.all_changed_files }}'
echo 'cargo: ${{ steps.cargo.outputs.all_changed_files }}'
echo 'crates: ${{ steps.cargo-crates.outputs.crates }}'
echo 'rust: ${{ steps.rust.outputs.all_changed_files }}'
outputs:
any_changed: ${{ steps.build.outputs.any_changed || steps.cargo.outputs.any_changed || steps.rust.outputs.any_changed }}
build_changed: ${{ steps.build.outputs.any_changed }}
cargo_changed: ${{ steps.cargo.outputs.any_changed }}
cargo_crates: ${{ steps.cargo-crates.outputs.crates || '[]' }}
cargo_crates: ${{ steps.cargo-crates.outputs.crates }}
rust_changed: ${{ steps.rust.outputs.any_changed }}

rust:
needs: meta
if: needs.meta.outputs.any_changed
if: needs.meta.outputs.any_changed == 'true'
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v43-rust
permissions:
Expand All @@ -67,7 +71,7 @@ jobs:

rust-crates:
needs: meta
if: needs.meta.outputs.cargo_changed
if: needs.meta.outputs.cargo_changed == 'true'
timeout-minutes: 20
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v43-rust
Expand Down

0 comments on commit 6b9f839

Please sign in to comment.