Feat: recursion v2 #6326
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: | |
| merge_group: | |
| pull_request: | |
| types: [ synchronize, opened, reopened, ready_for_review ] | |
| push: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
| jobs: | |
| tests: | |
| name: Run Tests | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| features: | |
| - name: default | |
| task: tests | |
| - name: goldilocks | |
| task: tests_goldilock | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| targets: riscv32im-unknown-none-elf | |
| # TODO: figure out way to keep this in sync with rust-toolchain.toml automatically | |
| toolchain: nightly-2025-11-20 | |
| - name: Cargo cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/bin/ | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| ceno_rt/target/ | |
| examples/target/ | |
| key: tests-${{ matrix.features.name }}-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: tests-${{ matrix.features.name }}-${{ runner.os }}-cargo- | |
| - name: Install m4 | |
| run: sudo apt-get install -y m4 | |
| - name: Install cargo make | |
| run: | | |
| cargo make --version || cargo install cargo-make | |
| # - name: Run recursion v2 aggregation tests | |
| # env: | |
| # RUSTFLAGS: "" # cleanup RUSTFLAGS and avoid target-cpu=native | |
| # RUST_MIN_STACK: "33554432" | |
| # run: bash ceno_recursion_v2/scripts/run_e2e_test.sh | |
| - name: run test | |
| env: | |
| RUSTFLAGS: "" # cleanup RUSTFLAGS and avoid target-cpu=native | |
| run: cargo make ${{ matrix.features.task }} | |