Merge branch 'main' into custom-format-in-escape #3484
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
| name: Tests | |
| on: [push, pull_request] | |
| jobs: | |
| test-latest: | |
| name: Test on Latest Stable | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.21' | |
| - name: Check | |
| run: make check | |
| - name: Test | |
| run: make test | |
| test-nightly: | |
| name: Test on nightly | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: nightly | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Wipe Cargo.lock | |
| run: rm Cargo.lock | |
| - name: Check | |
| run: make check | |
| - name: Test | |
| run: make test-rust | |
| - name: -Znext-solver | |
| run: RUSTFLAGS="-Znext-solver" cargo check --all --all-features | |
| test-32bit: | |
| name: Check on 1.70.0 (32bit) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: 1.70.0 | |
| targets: armv5te-unknown-linux-gnueabi | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install Cross Deps | |
| run: | | |
| sudo apt-get update --fix-missing | |
| sudo apt-get install -y gcc-arm-linux-gnueabi libc6-dev-armel-cross | |
| - name: Restore Cargo.lock | |
| run: cp Cargo.lock.msrv Cargo.lock | |
| - name: Check | |
| run: cargo check --all-features -p minijinja --target armv5te-unknown-linux-gnueabi | |
| test-fuel-feature: | |
| name: Check on 1.70.0 (fuel feature) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: 1.70.0 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Restore Cargo.lock | |
| run: cp Cargo.lock.msrv Cargo.lock | |
| - name: Check | |
| run: cargo check --no-default-features -p minijinja --features fuel | |
| test-stable: | |
| name: Test on 1.70.0 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: 1.70.0 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Restore Cargo.lock | |
| run: cp Cargo.lock.msrv Cargo.lock | |
| - name: Test | |
| run: make test-msrv | |
| test-no-lock: | |
| name: Test on Latest (No Lock) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Remove Cargo.lock | |
| run: rm Cargo.lock | |
| - name: Test | |
| run: make test-rust | |
| test-wasi: | |
| name: Test on WASI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| targets: wasm32-wasip1 | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install WasmTime | |
| run: | | |
| curl -LO https://github.com/bytecodealliance/wasmtime/releases/download/v13.0.0/wasmtime-v13.0.0-x86_64-linux.tar.xz | |
| tar xvf wasmtime-v13.0.0-x86_64-linux.tar.xz | |
| echo `pwd`/wasmtime-v13.0.0-x86_64-linux >> $GITHUB_PATH | |
| - name: Test | |
| run: make wasi-test | |
| test-python: | |
| name: Test Python binding (${{ matrix.variant }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| variant: [default, freethreaded] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: astral-sh/setup-uv@v3 | |
| if: matrix.variant == 'freethreaded' | |
| - name: Install free-threaded Python | |
| if: matrix.variant == 'freethreaded' | |
| run: | | |
| set -euo pipefail | |
| TARGET=cpython-3.14.0+freethreaded-linux-x86_64-gnu | |
| uv python install "$TARGET" | |
| PYTHON_BIN=$(uv python find "$TARGET") | |
| echo "$(dirname "$PYTHON_BIN")" >> "$GITHUB_PATH" | |
| "$PYTHON_BIN" -c "import sys; print('Free threading:', not sys._is_gil_enabled())" | |
| - name: Test | |
| run: make python-test | |
| test-js: | |
| name: Test JS binding | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install wasm-pack | |
| run: | | |
| curl -sSf https://rustwasm.github.io/wasm-pack/installer/init.sh | sh | |
| - name: Test | |
| run: make js-test | |
| test-cli-linux: | |
| name: Test CLI Linux | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Check | |
| run: make check-cli | |
| - name: Test | |
| run: make test-cli | |
| test-cli-windows: | |
| name: Test CLI Windows | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Check | |
| run: make check-cli | |
| - name: Test | |
| run: make test-cli |