Skip to content

feat: brainfuck interpreter #4

feat: brainfuck interpreter

feat: brainfuck interpreter #4

Workflow file for this run

name: Brainfuck ZK-VM CI
on:
pull_request:
branches:
- "*"
permissions:
deployments: read
contents: read
pull-requests: write
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
components: rustfmt
toolchain: nightly-2024-01-04
- uses: Swatinem/rust-cache@v2
- run: scripts/rust_fmt.sh --check
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
components: clippy
toolchain: nightly-2024-01-04
- uses: Swatinem/rust-cache@v2
- run: scripts/clippy.sh
machete:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bnjbvr/cargo-machete@main
run-brainfuck-vm-unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-01-04
- uses: Swatinem/rust-cache@v2
- run: cargo +nightly-2024-01-04 test --lib
run-brainfuck-vm-integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly-2024-01-04
- uses: Swatinem/rust-cache@v2
- run: cargo +nightly-2024-01-04 test --test '*'
all-tests:
runs-on: ubuntu-latest
needs:
- clippy
- format
- machete
- run-brainfuck-vm-unit-tests
- run-brainfuck-vm-integration-tests
steps:
- uses: re-actors/[email protected]
with:
jobs: ${{ toJSON(needs) }}