Skip to content

run release-tests on different runners #1

run release-tests on different runners

run release-tests on different runners #1

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