Skip to content

Commit

Permalink
detect self-hostedness through runner name
Browse files Browse the repository at this point in the history
  • Loading branch information
antondlr committed Sep 18, 2023
1 parent be10057 commit 65f45d3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
if: env.SELF_HOSTED_RUNNERS == false
if: ! startsWith(env.RUNNER_NAME, 'runner-')
if: !(startsWith(env.RUNNER_NAME, 'runner-'))
uses: actions-rs/toolchain@v1
with:
toolchain: stable
Expand All @@ -72,19 +73,19 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
if: env.SELF_HOSTED_RUNNERS == false
if: ! startsWith(env.RUNNER_NAME, 'runner-')
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt
- name: Install Foundry (anvil)
if: env.SELF_HOSTED_RUNNERS == false
if: ! startsWith(env.RUNNER_NAME, 'runner-')
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-ca67d15f4abd46394b324c50e21e66f306a1162d
- name: Install nexttest for linux
if: env.SELF_HOSTED_RUNNERS == false
if: ! startsWith(env.RUNNER_NAME, 'runner-')
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
- name: Run tests in release
run: make nextest-release
Expand Down Expand Up @@ -311,20 +312,20 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Get latest version of stable Rust
if: env.SELF_HOSTED_RUNNERS == false
if: ! startsWith(env.RUNNER_NAME, 'runner-')
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt
- name: Install geth
if: env.SELF_HOSTED_RUNNERS == false
if: ! startsWith(env.RUNNER_NAME, 'runner-')
run: |
sudo add-apt-repository -y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install ethereum
- name: Install lighthouse and lcli
if: env.SELF_HOSTED_RUNNERS == false
if: ! startsWith(env.RUNNER_NAME, 'runner-')
run: |
make
make install-lcli
Expand Down

0 comments on commit 65f45d3

Please sign in to comment.