Merge pull request #26 from matter-labs/oh_docs_added #70
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: "Rust CI" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
tests: | |
name: tests | |
runs-on: [matterlabs-ci-runner-c3d] | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions-rust-lang/setup-rust-toolchain@9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9 # v1.12.0 | |
with: | |
rustflags: "" | |
- name: Setup | |
run: | | |
rustup set profile minimal | |
- name: Compile | |
run: cargo build --verbose | |
- name: tests | |
# We need to increase the stack size for the tests (due to quotient computation) | |
run: RUST_MIN_STACK=67108864 cargo test all_layers_full_test --release -- --nocapture | |
mersenne_tests: | |
name: mersenne_tests | |
runs-on: [matterlabs-ci-runner-c3d] | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions-rust-lang/setup-rust-toolchain@9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9 # v1.12.0 | |
with: | |
rustflags: "" | |
- name: Setup | |
run: | | |
rustup set profile minimal | |
- name: Compile | |
working-directory: ./circuit_mersenne_field | |
run: cargo build --verbose | |
- name: tests | |
working-directory: ./circuit_mersenne_field | |
run: cargo test --release -- --nocapture --test-threads=1 | |
wrapper_generated: | |
name: wrapper_generated | |
runs-on: [matterlabs-ci-runner-c3d] | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions-rust-lang/setup-rust-toolchain@9d7e65c320fdb52dcd45ffaa68deb6c02c8754d9 # v1.12.0 | |
with: | |
rustflags: "" | |
- name: Setup | |
run: | | |
rustup set profile default | |
- name: Regenerate wrapper | |
run: cargo run --bin wrapper_generator --release | |
- name: Check if anything has changed | |
run: | | |
MODIFIED_FILES=$(git status --porcelain) | |
if [ -n "$MODIFIED_FILES" ]; then | |
echo "The following files were modified - did you run wrapper_generator? " | |
echo "$MODIFIED_FILES" | |
exit 1 | |
else | |
echo "No files were modified." | |
fi |