Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinI committed Jan 9, 2024
1 parent 4ecb98a commit 8d58090
Showing 1 changed file with 51 additions and 1 deletion.
52 changes: 51 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,56 @@ jobs:
target/debug/examples/orchestrator-webserver
target/debug/examples/validator-webserver
test-sequencer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout Repository
with:
path: hotshot

- uses: actions/checkout@v4
name: Checkout Sequencer Repository
with:
repository: EspressoSystems/espresso-sequencer
path: sequencer

- name: Install Rust Stable
uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@v2
name: Enable Rust Caching
with:
shared-key: ""
prefix-key: sequencer

- name: Patch sequencer dependencies
run: |
mkdir -p .cargo
cat << EOF > .cargo/config.toml
[patch.'https://github.com/EspressoSystems/hotshot']
hotshot = { path = "${GITHUB_WORKSPACE}/hotshot/crates/hotshot" }
hotshot-orchestrator = { path = "${GITHUB_WORKSPACE}/hotshot/crates/orchestrator" }
hotshot-signature-key = { path = "${GITHUB_WORKSPACE}/hotshot/crates/hotshot-signature-key" }
hotshot-types = { path = "${GITHUB_WORKSPACE}/hotshot/crates/types" }
hotshot-web-server = { path = "${GITHUB_WORKSPACE}/hotshot/crates/web_server" }
hotshot-testing = { path = "${GITHUB_WORKSPACE}/hotshot/crates/testing" }
EOF
- name: Build sequencer tests
working-directory: sequencer
run: |
export RUSTFLAGS='--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std" --cfg hotshot_example'
cargo test --release --workspace --all-features --no-run
- name: Run sequencer tests
working-directory: sequencer
run: |
export RUSTFLAGS='--cfg async_executor_impl="async-std" --cfg async_channel_impl="async-std" --cfg hotshot_example'
cargo test --release --workspace --all-features --verbose -- --test-threads 1 --nocapture
build-arm:
strategy:
matrix:
Expand Down Expand Up @@ -264,4 +314,4 @@ jobs:
just ${{ matrix.just_variants }} test_crypto
timeout-minutes: 60
env:
RUST_BACKTRACE: full
RUST_BACKTRACE: full

0 comments on commit 8d58090

Please sign in to comment.