Skip to content

Commit

Permalink
chore: update rust action
Browse files Browse the repository at this point in the history
Signed-off-by: Zander Franks <[email protected]>
  • Loading branch information
voximity committed Mar 21, 2024
1 parent 2585767 commit 07d23b4
Showing 1 changed file with 37 additions and 8 deletions.
45 changes: 37 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,50 @@ name: Rust

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

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v4
with:
path: snarkos-test

- name: Checkout snarkOS
uses: actions/checkout@v4
with:
repository: monadicus/snarkOS
path: snarkos

- name: Checkout snarkVM
uses: actions/checkout@v4
with:
repository: monadicus/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

- name: Build
working-directory: ./snarkos-test
env:
RUSTFLAGS: -Zcodegen-backend=cranelift
run: cargo +nightly build --verbose

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

0 comments on commit 07d23b4

Please sign in to comment.