diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7f8d8c2..e6011e2e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,8 +25,8 @@ jobs: read_remote_cache: true write_remote_cache: ${{ github.event_name == 'push' }} - run: | - # Make Bash not silently ignore errors. - set -euo pipefail + # Make Bash log commands and not silently ignore errors. + set -euxo pipefail # The artifact name will contain the target triple, so the file name doesn't need to. mv artifacts/typical-x86_64-unknown-linux-gnu artifacts/typical @@ -36,8 +36,8 @@ jobs: path: artifacts/typical if-no-files-found: error - run: | - # Make Bash not silently ignore errors. - set -euo pipefail + # Make Bash log commands and not silently ignore errors. + set -euxo pipefail # The artifact name will contain the target triple, so the file name doesn't need to. mv artifacts/typical-x86_64-unknown-linux-musl artifacts/typical @@ -47,8 +47,8 @@ jobs: path: artifacts/typical if-no-files-found: error - run: | - # Make Bash not silently ignore errors. - set -euo pipefail + # Make Bash log commands and not silently ignore errors. + set -euxo pipefail # The artifact name will contain the target triple, so the file name doesn't need to. mv artifacts/typical-aarch64-unknown-linux-gnu artifacts/typical @@ -58,8 +58,8 @@ jobs: path: artifacts/typical if-no-files-found: error - run: | - # Make Bash not silently ignore errors. - set -euo pipefail + # Make Bash log commands and not silently ignore errors. + set -euxo pipefail # The artifact name will contain the target triple, so the file name doesn't need to. mv artifacts/typical-aarch64-unknown-linux-musl artifacts/typical @@ -73,16 +73,16 @@ jobs: runs-on: windows-latest steps: - run: | - # Make Bash not silently ignore errors. - set -euo pipefail + # Make Bash log commands and not silently ignore errors. + set -euxo pipefail # The unit tests do not expect the files in `test_data` to have carriage returns added. git config --global core.autocrlf false git config --global core.eol lf - uses: actions/checkout@v3 - run: | - # Make Bash not silently ignore errors. - set -euo pipefail + # Make Bash log commands and not silently ignore errors. + set -euxo pipefail # Install the appropriate version of Rust. rustup toolchain install 1.76.0 # [ref:rust_1.76.0] @@ -121,8 +121,8 @@ jobs: steps: - uses: actions/checkout@v3 - run: | - # Make Bash not silently ignore errors. - set -euo pipefail + # Make Bash log commands and not silently ignore errors. + set -euxo pipefail # Install the appropriate version of Rust. rustup toolchain install 1.76.0 # [ref:rust_1.76.0] @@ -159,8 +159,8 @@ jobs: steps: - uses: actions/checkout@v3 - run: | - # Make Bash not silently ignore errors. - set -euo pipefail + # Make Bash log commands and not silently ignore errors. + set -euxo pipefail # Run the installer script. PREFIX=/tmp ./install.sh @@ -173,8 +173,8 @@ jobs: steps: - uses: actions/checkout@v3 - run: | - # Make Bash not silently ignore errors. - set -euo pipefail + # Make Bash log commands and not silently ignore errors. + set -euxo pipefail # Run the installer script. PREFIX=/tmp ./install.sh @@ -194,8 +194,8 @@ jobs: - env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - # Make Bash not silently ignore errors. - set -euo pipefail + # Make Bash log commands and not silently ignore errors. + set -euxo pipefail # Install the appropriate version of Rust. rustup toolchain install 1.76.0 # [ref:rust_1.76.0] diff --git a/toast.yml b/toast.yml index 4837b75d..dc08a930 100644 --- a/toast.yml +++ b/toast.yml @@ -2,8 +2,8 @@ image: ubuntu:22.04 default: build user: user command_prefix: | - # Make Bash not silently ignore errors. - set -euo pipefail + # Make Bash log commands and not silently ignore errors. + set -euxo pipefail # Load the Rust startup file, if it exists. if [ -f "$HOME/.cargo/env" ]; then