Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metamath-knife to automated checks #3279

Merged
merged 1 commit into from
Jul 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/verifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,42 @@ jobs:
run: |
~/.cargo/bin/smetamath --verify --split --jobs 4 --timing ./iset.mm 2>&1 | tee smm.log && [ `egrep '(:Error:|:Warning:)' < smm.log; echo $?` -eq 1 ]

###########################################################
metamath-knife:
name: Verify using metamath-knife
runs-on: ubuntu-latest
needs: skip_dups
if: ${{ needs.skip_dups.outputs.should_skip != 'true' }}
steps:
- uses: actions/checkout@v3
- name: Cache metamath-knife
id: cache-metamath-knife
uses: actions/cache@v3
env:
cache-name: cache-knife
with:
path: ~/.cargo/bin/cache-knife
key: ${{ runner.os }}-build-${{ env.cache-name }}
- name: Install rust
if: ${{ !steps.cache-metamath-knife.outputs.cache-hit }}
uses: hecrj/setup-rust-action@v1
with:
rust-version: stable
- run: git clone --depth 1 https://github.com/david-a-wheeler/metamath-knife.git
- run: cd metamath-knife && cargo build --release
- name: Verify set.mm
run: |
metamath-knife/target/release/metamath-knife --verify ./set.mm
- name: Verify iset.mm
run: |
metamath-knife/target/release/metamath-knife --verify ./iset.mm
- name: Check axiom usage for set.mm
run: |
metamath-knife/target/release/metamath-knife --verify-usage ./set.mm
- name: Check axiom usage for iset.mm
run: |
metamath-knife/target/release/metamath-knife --verify-usage ./iset.mm

###########################################################
mmj2:
name: Verify using mmj2 (Java verifier by Mel L. O'Cat and Mario Carneiro)
Expand Down