tac: fix Windows stdin by returning None from mmap when empty #432
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: CICD | |
| # spell-checker:ignore (shell/tools) nextest sccache taiki Swatinem dtolnay | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - '*' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| jobs: | |
| test_tac_windows_flaky: | |
| name: Test/tac-windows-${{ matrix.batch }} | |
| runs-on: windows-latest | |
| timeout-minutes: 30 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| batch: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
| env: | |
| SCCACHE_GHA_ENABLED: "true" | |
| RUSTC_WRAPPER: "sccache" | |
| CARGO_INCREMENTAL: 0 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: taiki-e/install-action@nextest | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Run sccache-cache | |
| uses: mozilla-actions/sccache-action@v0.0.9 | |
| - name: Run tac tests 20 times (batch ${{ matrix.batch }}/10) | |
| shell: bash | |
| run: | | |
| for i in $(seq 1 20); do | |
| echo "=== Batch ${{ matrix.batch }}, Run $i/20 ===" | |
| cargo nextest run --hide-progress-bar --features feat_os_windows -E 'test(test_tac)' || exit 1 | |
| done | |
| env: | |
| RUST_BACKTRACE: "1" |