forked from sigp/lighthouse
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
run
release-tests
on different runners
- Loading branch information
Showing
7 changed files
with
57 additions
and
1,022 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: test-suite | ||
|
||
on: | ||
push: | ||
branches: | ||
- runner-tests | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
# Deny warnings in CI | ||
# Disable debug info (see https://github.com/sigp/lighthouse/issues/4005) | ||
RUSTFLAGS: "-D warnings -C debuginfo=0" | ||
# Prevent Github API rate limiting. | ||
LIGHTHOUSE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# Enable self-hosted runners for the sigp repo only. | ||
SELF_HOSTED_RUNNERS: ${{ github.repository == 'sigp/lighthouse' }} | ||
# Self-hosted runners need to reference a different host for `./watch` tests. | ||
WATCH_HOST: ${{ github.repository == 'sigp/lighthouse' && 'host.docker.internal' || 'localhost' }} | ||
# Disable incremental compilation | ||
CARGO_INCREMENTAL: 0 | ||
# Enable portable to prevent issues with caching `blst` for the wrong CPU type | ||
TEST_FEATURES: portable | ||
jobs: | ||
release-tests-arm: | ||
name: release-tests-arm | ||
runs-on: ${{ fromJson('["self-hosted", "linux", "arm64"]') }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run tests in release | ||
run: make nextest-release | ||
- name: Show cache stats | ||
if: env.SELF_HOSTED_RUNNERS == 'true' | ||
run: sccache --show-stats | ||
release-tests-x64: | ||
name: release-tests-x64 | ||
runs-on: ${{ fromJson('["self-hosted", "linux", "x64"]') }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run tests in release | ||
run: make nextest-release | ||
- name: Show cache stats | ||
if: env.SELF_HOSTED_RUNNERS == 'true' | ||
run: sccache --show-stats | ||
release-tests-macos: | ||
name: release-tests-macos | ||
runs-on: ${{ fromJson('["self-hosted", "macos"]') }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run tests in release | ||
run: make nextest-release | ||
- name: Show cache stats | ||
if: env.SELF_HOSTED_RUNNERS == 'true' | ||
run: sccache --show-stats |
Oops, something went wrong.