-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore-readme
- Loading branch information
Showing
84 changed files
with
5,919 additions
and
1,226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for Cargo | ||
- package-ecosystem: cargo | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
|
||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
name: PR | ||
on: | ||
pull_request: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
RUST_BACKTRACE: 1 | ||
|
||
jobs: | ||
# TODO move to a release ci | ||
# 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: | ||
# toolchain: nightly-2024-04-01 | ||
# 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 -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort | ||
# run: cargo +nightly-2024-04-01 build --verbose | ||
|
||
fmt: | ||
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: ☁️ Install Nightly | ||
uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
components: rustfmt | ||
|
||
- name: 📋 Format Check | ||
working-directory: ./snarkos-test | ||
run: cargo +nightly fmt -- --check | ||
|
||
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 | ||
uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
toolchain: nightly-2024-04-01 | ||
components: rustc-codegen-cranelift-preview clippy | ||
|
||
- name: 🫙 Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: snarkos-test | ||
key: cache-v1 | ||
cache-on-failure: true | ||
|
||
- name: ☁️ Install Nextest | ||
uses: taiki-e/install-action@nextest | ||
|
||
- name: ☁️ Install cargo-machete | ||
run: cargo install cargo-machete | ||
|
||
# - name: 📋 Clippy Check | ||
# working-directory: ./snarkos-test | ||
# env: | ||
# RUSTFLAGS: -Zcodegen-backend=cranelift | ||
# run: cargo +nightly-2024-04-01 clippy --all --all-targets -- -D warnings | ||
|
||
- name: 📋 Check Unused Deps | ||
if: always() | ||
working-directory: ./snarkos-test | ||
env: | ||
RUSTFLAGS: -Zcodegen-backend=cranelift | ||
run: cargo machete | ||
|
||
- name: 🧪 Test | ||
if: always() | ||
working-directory: ./snarkos-test | ||
env: | ||
RUSTFLAGS: -Zcodegen-backend=cranelift | ||
run: cargo +nightly-2024-04-01 nextest run --all --verbose --fail-fast |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
/snot-data | ||
/snops-control-data | ||
/snops-data | ||
/metrics-data |
Oops, something went wrong.