Skip to content

Commit

Permalink
ci: Print debug output ("set -x") for all invocations of just
Browse files Browse the repository at this point in the history
Let's get more logs from just in CI. We know we'll hit a bug and need
them, eventually.

Signed-off-by: Quentin Monnet <[email protected]>
  • Loading branch information
qmonnet committed Nov 9, 2024
1 parent 0874727 commit 692f8ed
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
run: |
cargo binstall --no-confirm cargo-deny
- run: |
just cargo deny check
just debug=true cargo deny check
- name: "install openssl and libssl-dev (needed for markdown-test-report)"
run: |
sudo apt-get update
Expand All @@ -80,12 +80,12 @@ jobs:
cargo binstall --no-confirm markdown-test-report
- name: refresh-compile-env
run: |
just --yes refresh-compile-env
just --yes debug=true refresh-compile-env
- run: |
just --yes fake-nix
just --yes debug=true fake-nix
- run: |
just cargo +${{matrix.rust.toolchain}} build --locked --profile=dev --target=x86_64-unknown-linux-gnu
just debug=true cargo +${{matrix.rust.toolchain}} build --locked --profile=dev --target=x86_64-unknown-linux-gnu
continue-on-error: ${{ matrix.rust.optional }}
- name: "tests: rust ${{ matrix.rust.toolchain }} profile=dev target=x86_64-unknown-linux-gnu"
run: |
Expand All @@ -105,7 +105,7 @@ jobs:
continue-on-error: ${{ matrix.rust.optional }}

- run: |
just cargo +${{matrix.rust.toolchain}} build --locked --profile=release --target=x86_64-unknown-linux-gnu
just debug=true cargo +${{matrix.rust.toolchain}} build --locked --profile=release --target=x86_64-unknown-linux-gnu
continue-on-error: ${{ matrix.rust.optional }}
- name: "tests: rust ${{ matrix.rust.toolchain }} profile=release target=x86_64-unknown-linux-gnu"
run: |
Expand All @@ -115,7 +115,7 @@ jobs:
continue-on-error: ${{ matrix.rust.optional }}

- run: |
just cargo +${{matrix.rust.toolchain}} build --locked --profile=release --target=x86_64-unknown-linux-musl
just debug=true cargo +${{matrix.rust.toolchain}} build --locked --profile=release --target=x86_64-unknown-linux-musl
continue-on-error: ${{ matrix.rust.optional }}
- name: "tests: rust ${{ matrix.rust.toolchain }} profile=release target=x86_64-unknown-linux-musl"
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:

- name: "Build design docs"
run: |
just mdbook build
just debug=true mdbook build
- name: "Copy design doc build to publish directory"
run: |
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/sterile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,31 +56,31 @@ jobs:
if: ${{ always() }}
run: |
export GITHUB_STEP_SUMMARY
just rust="${{matrix.rust}}" profile=dev target=x86_64-unknown-linux-gnu sterile test
just debug=true rust="${{matrix.rust}}" profile=dev target=x86_64-unknown-linux-gnu sterile test
mkdir dev.gnu
cp -a ./target/nextest dev.gnu
- name: "release/gnu sterile test"
if: ${{ always() }}
run: |
export GITHUB_STEP_SUMMARY
just rust="${{matrix.rust}}" profile=release target=x86_64-unknown-linux-gnu sterile test
just debug=true rust="${{matrix.rust}}" profile=release target=x86_64-unknown-linux-gnu sterile test
mkdir release.gnu
cp -a ./target/nextest release.gnu
- name: "dev/musl sterile test"
if: ${{ always() }}
run: |
export GITHUB_STEP_SUMMARY
just rust="${{matrix.rust}}" profile=dev target=x86_64-unknown-linux-musl sterile test
just debug=true rust="${{matrix.rust}}" profile=dev target=x86_64-unknown-linux-musl sterile test
mkdir dev.musl
cp -a ./target/nextest dev.musl
- name: "release/musl sterile test"
if: ${{ always() }}
run: |
export GITHUB_STEP_SUMMARY
just rust="${{matrix.rust}}" profile=release target=x86_64-unknown-linux-musl sterile test
just debug=true rust="${{matrix.rust}}" profile=release target=x86_64-unknown-linux-musl sterile test
mkdir release.musl
cp -a ./target/nextest release.musl
Expand All @@ -100,28 +100,28 @@ jobs:
run: |
export GITHUB_STEP_SUMMARY
export CARGO_TARGET_DIR=dev.gnu
just rust="${{matrix.rust}}" profile=dev target=x86_64-unknown-linux-gnu report
just debug=true rust="${{matrix.rust}}" profile=dev target=x86_64-unknown-linux-gnu report
- name: "dev/musl report"
if: ${{ always() }}
run: |
export GITHUB_STEP_SUMMARY
export CARGO_TARGET_DIR=dev.musl
just rust="${{matrix.rust}}" profile=dev target=x86_64-unknown-linux-musl report
just debug=true rust="${{matrix.rust}}" profile=dev target=x86_64-unknown-linux-musl report
- name: "release/gnu report"
if: ${{ always() }}
run: |
export GITHUB_STEP_SUMMARY
export CARGO_TARGET_DIR=release.gnu
just rust="${{matrix.rust}}" profile=release target=x86_64-unknown-linux-gnu report
just debug=true rust="${{matrix.rust}}" profile=release target=x86_64-unknown-linux-gnu report
- name: "release/musl report"
if: ${{ always() }}
run: |
export GITHUB_STEP_SUMMARY
export CARGO_TARGET_DIR=release.musl
just rust="${{matrix.rust}}" profile=release target=x86_64-unknown-linux-musl report
just debug=true rust="${{matrix.rust}}" profile=release target=x86_64-unknown-linux-musl report
- uses: "actions/upload-artifact@v4"
if: ${{ always() }}
Expand Down Expand Up @@ -180,15 +180,15 @@ jobs:
- run: |
cargo binstall --no-confirm cargo-deny
- run: |
just cargo deny check
just debug=true cargo deny check
- run: |
just rust="${{matrix.rust}}" profile=debug target=x86_64-unknown-linux-gnu push-container
just debug=true rust="${{matrix.rust}}" profile=debug target=x86_64-unknown-linux-gnu push-container
- run: |
just rust="${{matrix.rust}}" profile=release target=x86_64-unknown-linux-gnu push-container
just debug=true rust="${{matrix.rust}}" profile=release target=x86_64-unknown-linux-gnu push-container
- run: |
just rust="${{matrix.rust}}" profile=debug target=x86_64-unknown-linux-musl push-container
just debug=true rust="${{matrix.rust}}" profile=debug target=x86_64-unknown-linux-musl push-container
- run: |
just rust="${{matrix.rust}}" profile=release target=x86_64-unknown-linux-musl push-container
just debug=true rust="${{matrix.rust}}" profile=release target=x86_64-unknown-linux-musl push-container
- name: "Setup tmate session for debug"
if: ${{ failure() && github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
Expand Down

0 comments on commit 692f8ed

Please sign in to comment.