Skip to content

Commit

Permalink
feat(ci): test speed up part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
gluax committed Mar 29, 2024
1 parent 53e1588 commit 783ff10
Showing 1 changed file with 42 additions and 3 deletions.
45 changes: 42 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Rust

on:
push:
branches: ['main']
branches: ["main"]
pull_request:
branches: ['main']
branches: ["main"]

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -39,14 +39,53 @@ jobs:
with:
components: rustc-codegen-cranelift-preview

- uses: Swatinem/rust-cache@v2
with:
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:
key: cache-v1

- uses: taiki-e/install-action@nextest

- name: Run tests
working-directory: ./snarkos-test
env:
RUSTFLAGS: -Zcodegen-backend=cranelift
run: cargo +nightly test --verbose
run: cargo +nightly nextest --all --verbose

0 comments on commit 783ff10

Please sign in to comment.