Skip to content

Merge pull request #94 from monadicus/refactor-rename #75

Merge pull request #94 from monadicus/refactor-rename

Merge pull request #94 from monadicus/refactor-rename #75

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: snarkos-test
- name: Checkout snarkOS
uses: actions/checkout@v4
with:
repository: AleoNet/snarkOS
path: snarkos
- name: Checkout snarkVM
uses: actions/checkout@v4
with:
repository: AleoNet/snarkVM
path: snarkvm
- name: Use mold linker
uses: rui314/setup-mold@v1
- name: Install nightly and cranelift
uses: dtolnay/rust-toolchain@nightly
with:
components: rustc-codegen-cranelift-preview
- uses: Swatinem/rust-cache@v2
with:
workspaces: snarkos-test
key: cache-v1
- name: Build
working-directory: ./snarkos-test
env:
RUSTFLAGS: -Zcodegen-backend=cranelift
run: cargo +nightly build --verbose
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: snarkos-test
- name: Checkout snarkOS
uses: actions/checkout@v4
with:
repository: AleoNet/snarkOS
path: snarkos
- name: Checkout snarkVM
uses: actions/checkout@v4
with:
repository: AleoNet/snarkVM
path: snarkvm
- name: Use mold linker
uses: rui314/setup-mold@v1
- name: Install nightly and cranelift
uses: dtolnay/rust-toolchain@nightly
with:
components: rustc-codegen-cranelift-preview
- uses: Swatinem/rust-cache@v2
with:
workspaces: snarkos-test
key: cache-v1
- uses: taiki-e/install-action@nextest
- name: Run tests
working-directory: ./snarkos-test
env:
RUSTFLAGS: -Zcodegen-backend=cranelift
run: cargo +nightly nextest run --all --verbose --fail-fast