Skip to content

poseidon hash

poseidon hash #54

Workflow file for this run

name: CI
on:
push:
branches: ["main"]
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
lint:
strategy:
matrix:
rust: [stable, nightly]
name: Lint
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
- name: Build | Lint
run: cargo clippy
compile:
strategy:
matrix:
rust: [stable, nightly]
name: Compile
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
- name: Build | Compile
run: cargo check
test:
name: Test
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
rust:
- stable
- nightly
runs-on: ${{ matrix.os }}
needs: [compile]
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
- name: Build | Compile
run: cargo test