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

remove blockbuster submodule #245

Merged
merged 15 commits into from
Aug 13, 2024
63 changes: 54 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ env:
RUSTFLAGS: "-D warnings -W rust-2021-compatibility"

jobs:
build:
lint:
runs-on: ubuntu-latest

steps:
- name: Check out
uses: actions/checkout@v3
with:
submodules: 'recursive'
token: ${{ secrets.PAT }}

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
Expand Down Expand Up @@ -54,9 +51,6 @@ jobs:
- name: Lint with Clippy
run: cargo clippy --all -- -D warnings --allow=deprecated

- name: Compile tests
run: cargo test --no-run --locked --features integration_tests

- name: Save cargo cache
id: cache-cargo-save
uses: actions/cache/save@v4
Expand All @@ -69,5 +63,56 @@ jobs:
target/
key: ${{ steps.cache-cargo.outputs.cache-primary-key }}

- name: Run tests
run: cargo test --features integration_tests -- --nocapture --quiet
test:
runs-on: ubuntu-latest

steps:
- name: Check out
uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler

- name: Install Rust specific version
uses: actions-rs/toolchain@v1
with:
toolchain: 1.75
profile: minimal
components: clippy, rustfmt
override: true

- name: Restore cargo cache
id: cache-cargo
uses: actions/cache/restore@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Append to Cargo.toml
run: |
echo "[profile.dev]" >> Cargo.toml
echo "debug = 0" >> Cargo.toml

- name: Compile tests
run: cargo test --no-run --locked --features integration_tests

- name: Save cargo cache
id: cache-cargo-save
uses: actions/cache/save@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ steps.cache-cargo.outputs.cache-primary-key }}

- name: Run tests
run: cargo test --features integration_tests -- --nocapture --quiet
Loading
Loading