Skip to content

Generate constraints in black box functions #261

Generate constraints in black box functions

Generate constraints in black box functions #261

Workflow file for this run

# clippy job should be revisited:
# not all the features are being checked
# test job should be revisited
name: Noir Backend Gnark build checks
on:
push:
branches: [ main ]
pull_request:
branches: [ '*' ]
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
# go:
# name: Tests go backend
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Setup Go
# uses: actions/setup-go@v3
# with:
# go-version: '>=1.20.1'
# - name: Build
# run: make build-go
# - name: Test
# run: make test-go
test:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install nargo
run: make nargo
- name: Run cargo test
run: make test
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Linter
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: clippy
- run: make clippy