Skip to content

Commit

Permalink
Correct CI (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
AgeManning authored Sep 25, 2024
1 parent 1d99840 commit 9c06203
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 39 deletions.
38 changes: 4 additions & 34 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ env:
RUSTFLAGS: "-D warnings -C debuginfo=0"
# Prevent Github API rate limiting.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Enable self-hosted runners for the sigp repo only.
SELF_HOSTED_RUNNERS: ${{ github.repository == 'sigp/ssv' }}
# Enable self-hosted runners for the SSV repo only.
SELF_HOSTED_RUNNERS: false # ${{ github.repository == 'sigp/ssv' }}
# Self-hosted runners need to reference a different host for `./watch` tests.
WATCH_HOST: ${{ github.repository == 'sigp/ssv' && 'host.docker.internal' || 'localhost' }}
# Disable incremental compilation
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:
needs: [check-labels]
if: needs.check-labels.outputs.skip_ci != 'true'
# Use self-hosted runners only on the sigp repo.
runs-on: ${{ github.repository == 'sigp/ssv' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }}
runs-on: ubuntu-latest #${{ github.repository == 'sigp/ssv' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }}
steps:
- uses: actions/checkout@v4
- name: Get latest version of stable Rust
Expand All @@ -81,38 +81,12 @@ jobs:
- name: Show cache stats
if: env.SELF_HOSTED_RUNNERS == 'true'
run: sccache --show-stats
release-tests-windows:
name: release-tests-windows
needs: [check-labels]
if: needs.check-labels.outputs.skip_ci != 'true'
runs-on: ${{ github.repository == 'sigp/ssv' && fromJson('["self-hosted", "windows", "CI"]') || 'windows-2019' }}
steps:
- uses: actions/checkout@v4
- name: Get latest version of stable Rust
if: env.SELF_HOSTED_RUNNERS == 'false'
uses: moonrepo/setup-rust@v1
with:
channel: stable
cache-target: release
bins: cargo-nextest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install make
if: env.SELF_HOSTED_RUNNERS == 'false'
run: choco install -y make
- name: Set LIBCLANG_PATH
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
- name: Run tests in release
run: make nextest-release
- name: Show cache stats
if: env.SELF_HOSTED_RUNNERS == 'true'
run: sccache --show-stats
debug-tests-ubuntu:
name: debug-tests-ubuntu
needs: [check-labels]
if: needs.check-labels.outputs.skip_ci != 'true'
# Use self-hosted runners only on the sigp repo.
runs-on: ${{ github.repository == 'sigp/ssv' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }}
runs-on: ubuntu-latest #${{ github.repository == 'sigp/ssv' && fromJson('["self-hosted", "linux", "CI", "large"]') || 'ubuntu-latest' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand Down Expand Up @@ -148,10 +122,6 @@ jobs:
run: make lint
- name: Certify Cargo.lock freshness
run: git diff --exit-code Cargo.lock
- name: Typecheck benchmark code without running it
run: make check-benches
- name: Validate state_processing feature arbitrary-fuzz
run: make arbitrary-fuzz
- name: Run cargo audit
run: make audit-CI
- name: Run cargo vendor to make sure dependencies can be vendored for packaging, reproducibility and archival purpose
Expand Down
1 change: 0 additions & 1 deletion book/src/developers.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ _Documentation for protocol developers._

This section lists Lighthouse-specific decisions that are not strictly spec'd and may be useful for
other protocol developers wishing to interact with SSV.

2 changes: 1 addition & 1 deletion book/src/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

- [What is sigp/SSV](#sigp-ssv)

### <a name="sigp-ssv"></a> What is sigp/SSV
## <a name="sigp-ssv"></a> What is sigp/SSV

The rust implementation of the Secret Shared Validator (SSV) protocol.
2 changes: 1 addition & 1 deletion book/src/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

_Documentation for SSV users and developers._

This is the SSV client.
This is the SSV client.

## About this Book

Expand Down
4 changes: 2 additions & 2 deletions book/src/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ As with most other Rust projects, SSV uses `cargo test` for unit and
integration tests. For example, to test the `qbft` crate run:

```bash
$ cd src/qbft
$ cargo test
cd src/qbft
cargo test
```

## Local Testnets
Expand Down

0 comments on commit 9c06203

Please sign in to comment.