Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: release prep #291

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
# https://releases.rs/docs/1.81.0/ release date
NIGHTLY_TOOLCHAIN: nightly-2024-09-05

# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand Down Expand Up @@ -51,7 +53,7 @@ jobs:
# - name: Build
# env:
# RUSTFLAGS: -Zcodegen-backend=cranelift -Zbuild-std=std,panic_abort -Zbuild-std-features=panic_immediate_abort
# run: cargo +nightly build --verbose
# run: cargo +${{ env.NIGHTLY_TOOLCHAIN }} build --verbose

fmt:
runs-on: ubuntu-latest
Expand All @@ -63,10 +65,11 @@ jobs:
- name: ☁️ Install Nightly
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ env.NIGHTLY_TOOLCHAIN }}
components: rustfmt

- name: 📋 Format Check
run: cargo +nightly fmt -- --check
run: cargo +${{ env.NIGHTLY_TOOLCHAIN }} fmt -- --check

test:
runs-on: ubuntu-latest
Expand All @@ -84,6 +87,7 @@ jobs:
- name: ☁️ Install Nightly
uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{ env.NIGHTLY_TOOLCHAIN }}
components: rustc-codegen-cranelift-preview clippy

- name: 🫙 Cache
Expand All @@ -101,7 +105,7 @@ jobs:
# - name: 📋 Clippy Check
# env:
# RUSTFLAGS: -Zcodegen-backend=cranelift
# run: cargo +nightly clippy --all --all-targets -- -D warnings
# run: cargo +${{ env.NIGHTLY_TOOLCHAIN }} clippy --all --all-targets -- -D warnings

# - name: 📋 Check Unused Deps
# if: always()
Expand Down Expand Up @@ -131,38 +135,38 @@ jobs:

- name: 🧪 Test All
if: steps.changes.outputs.top_toml == 'true'
run: cargo +nightly nextest run --all --verbose --fail-fast --all-features
run: cargo +${{ env.NIGHTLY_TOOLCHAIN }} nextest run --all --verbose --fail-fast --all-features

- name: 🧪 Test Aot
if: steps.changes.outputs.aot == 'true' && steps.changes.outputs.top_toml == 'false'
run: cargo +nightly nextest run -p snarkos-aot --verbose --fail-fast --all-features
run: cargo +${{ env.NIGHTLY_TOOLCHAIN }} nextest run -p snarkos-aot --verbose --fail-fast --all-features

- name: 🧪 Test Checkpoint
env:
RUSTFLAGS: -Zcodegen-backend=cranelift
if: steps.changes.outputs.checkpoint == 'true' && steps.changes.outputs.top_toml == 'false'
run: cargo +nightly nextest run -p checkpoint --verbose --fail-fast --all-features
run: cargo +${{ env.NIGHTLY_TOOLCHAIN }} nextest run -p checkpoint --verbose --fail-fast --all-features

- name: 🧪 Test Common
env:
RUSTFLAGS: -Zcodegen-backend=cranelift
if: steps.changes.outputs.common == 'true' && steps.changes.outputs.top_toml == 'false'
run: cargo +nightly nextest run -p snops-common --verbose --fail-fast --all-features
run: cargo +${{ env.NIGHTLY_TOOLCHAIN }} nextest run -p snops-common --verbose --fail-fast --all-features

- name: 🧪 Test Control Plane
env:
RUSTFLAGS: -Zcodegen-backend=cranelift
if: (steps.changes.outputs.control_plane == 'true' || steps.changes.outputs.common == 'true') && steps.changes.outputs.top_toml == 'false'
run: cargo +nightly nextest run -p snops --verbose --fail-fast --all-features
run: cargo +${{ env.NIGHTLY_TOOLCHAIN }} nextest run -p snops --verbose --fail-fast --all-features

- name: 🧪 Test Agent
env:
RUSTFLAGS: -Zcodegen-backend=cranelift
if: (steps.changes.outputs.agent == 'true' || steps.changes.outputs.common == 'true') && steps.changes.outputs.top_toml == 'false'
run: cargo +nightly nextest run -p snops-agent --verbose --fail-fast --all-features
run: cargo +${{ env.NIGHTLY_TOOLCHAIN }} nextest run -p snops-agent --verbose --fail-fast --all-features

- name: 🧪 Test Scli
env:
RUSTFLAGS: -Zcodegen-backend=cranelift
if: (steps.changes.outputs.scli == 'true' || steps.changes.outputs.common == 'true') && steps.changes.outputs.top_toml == 'false'
run: cargo +nightly nextest run -p snops-cli --verbose --fail-fast --all-features
run: cargo +${{ env.NIGHTLY_TOOLCHAIN }} nextest run -p snops-cli --verbose --fail-fast --all-features
Loading
Loading