Sync, add risczero implementation, update backend, new proving schemes #2
This file contains 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: Gnark | |
on: | |
push: | |
branches: | |
- main | |
- master | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Verify dependencies | |
working-directory: ./gnark-plonky2-verifier | |
run: go mod verify | |
- name: Build | |
working-directory: ./gnark-plonky2-verifier | |
run: go build -v ./... | |
check: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Install staticcheck | |
working-directory: ./gnark-plonky2-verifier | |
run: go install honnef.co/go/tools/cmd/staticcheck@latest | |
- name: Run staticcheck | |
working-directory: ./gnark-plonky2-verifier | |
run: staticcheck ./... | |
lint: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Install golint | |
working-directory: ./gnark-plonky2-verifier | |
run: go install golang.org/x/lint/golint@latest | |
- name: Run golint | |
working-directory: ./gnark-plonky2-verifier | |
run: golint ./... |