fix: preserve case and padding on truncated hex formatting #784
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
| on: # yamllint disable-line rule:truthy | |
| push: | |
| branches: | |
| - master | |
| - 'test-ci/**' | |
| pull_request: | |
| name: Continuous integration | |
| jobs: | |
| Test: | |
| name: Test - ${{ matrix.toolchain }} toolchain, ${{ matrix.dep }} deps | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| toolchain: [stable, nightly, msrv] | |
| dep: [minimal, recent] | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: rust-bitcoin/rust-bitcoin-maintainer-tools/.github/actions/setup-rbmt@af3c2868415b17eedc808da6d0589e10b7482660 | |
| - name: "Run tests" | |
| run: cargo rbmt test --toolchain ${{ matrix.toolchain }} --lock-file ${{ matrix.dep }} | |
| Check: | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| task: [api, lint, docs, docsrs, "fmt --check"] | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: rust-bitcoin/rust-bitcoin-maintainer-tools/.github/actions/setup-rbmt@af3c2868415b17eedc808da6d0589e10b7482660 | |
| - name: "Run ${{ matrix.task }}" | |
| run: cargo rbmt ${{ matrix.task }} | |
| # Non cargo-rbmt jobs manage their toolchain version directly. | |
| Prepare: | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| nightly_version: ${{ steps.read_toolchain.outputs.nightly_version }} | |
| steps: | |
| - name: "Checkout repo" | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: "Read nightly version" | |
| id: read_toolchain | |
| run: echo "nightly_version=$(cargo metadata --format-version 1 | jq -r '.metadata.rbmt.toolchains.nightly')" >> $GITHUB_OUTPUT | |
| Arch32bit: | |
| name: Test 32-bit version | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: "Checkout repo" | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: "Select toolchain" | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: "Add architecture i386" | |
| run: sudo dpkg --add-architecture i386 | |
| - name: "Install i686 gcc" | |
| run: sudo apt-get update -y && sudo apt-get install -y gcc-multilib | |
| - name: "Install target" | |
| run: rustup target add i686-unknown-linux-gnu | |
| - name: "Run test on i686" | |
| run: cargo test --target i686-unknown-linux-gnu | |
| Cross: | |
| name: Cross test - stable toolchain | |
| if: ${{ !github.event.act }} | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: "Checkout repo" | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: "Select toolchain" | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: "Install target" | |
| run: rustup target add s390x-unknown-linux-gnu | |
| - name: "Install cross" | |
| run: cargo install cross --locked | |
| - name: "Run cross test" | |
| run: cross test --target s390x-unknown-linux-gnu | |
| Compile: | |
| name: Compile tests | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: "Checkout repo" | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: "Select toolchain" | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: "Run compile tests" | |
| run: ./contrib/compile-tests.sh |