From 1493444daa8208717bc1aacfa31e956fae025dd8 Mon Sep 17 00:00:00 2001 From: Todd Fiala <100159218+todd-mystenlabs@users.noreply.github.com> Date: Tue, 26 Apr 2022 14:12:07 -0700 Subject: [PATCH] Include the self-hosted flag in GH Workflows (#1585) * switch rust to use self-hosted linux * updated all workflows to use [self-hosted, ubuntu-latest] --- .github/workflows/bench.yml | 4 ++-- .github/workflows/codecov.yml | 4 ++-- .github/workflows/explorer-client-prs.yml | 4 ++-- .github/workflows/nightly.yml | 4 ++-- .github/workflows/rust.yml | 14 +++++++------- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index d49b29a7c8916..59964ac397a91 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -28,7 +28,7 @@ env: jobs: diff: - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] outputs: isRust: ${{ steps.diff.outputs.isRust }} steps: @@ -40,7 +40,7 @@ jobs: bench: needs: diff if: github.event.pull_request.draft == false && needs.diff.outputs.isRust == 'true' - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 8a8a5b331e442..1fbfe8a664f20 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -10,7 +10,7 @@ on: jobs: diff: - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] outputs: isRust: ${{ steps.diff.outputs.isRust }} steps: @@ -23,7 +23,7 @@ jobs: name: Generate code coverage needs: diff if: github.event.pull_request.draft == false && needs.diff.outputs.isRust == 'true' - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] strategy: fail-fast: true steps: diff --git a/.github/workflows/explorer-client-prs.yml b/.github/workflows/explorer-client-prs.yml index 968fcbb37ec0d..4280114a4b482 100644 --- a/.github/workflows/explorer-client-prs.yml +++ b/.github/workflows/explorer-client-prs.yml @@ -2,7 +2,7 @@ name: Explorer Client PR checks on: pull_request jobs: diff: - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] outputs: isClient: ${{ steps.diff.outputs.isExplorerClient }} steps: @@ -14,7 +14,7 @@ jobs: name: Lint, Test & Build needs: diff if: needs.diff.outputs.isClient == 'true' - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index d912cbdd32248..de5728325ffb7 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -29,7 +29,7 @@ env: jobs: beta: name: Run test on the beta channel - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] steps: - uses: actions/checkout@v3 - name: Install beta toolchain @@ -49,7 +49,7 @@ jobs: release: name: build release binaries - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7783ba3a04099..0204953bd7165 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -30,7 +30,7 @@ env: jobs: diff: - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] outputs: isRust: ${{ steps.diff.outputs.isRust }} steps: @@ -41,7 +41,7 @@ jobs: license-check: name: license-check - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] steps: - uses: actions/checkout@v3 - run: scripts/license_check.sh @@ -49,7 +49,7 @@ jobs: test: needs: diff if: needs.diff.outputs.isRust == 'true' - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] strategy: fail-fast: false steps: @@ -69,7 +69,7 @@ jobs: clippy: needs: diff if: needs.diff.outputs.isRust == 'true' - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 @@ -87,7 +87,7 @@ jobs: rustfmt: needs: diff if: needs.diff.outputs.isRust == 'true' - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 @@ -103,7 +103,7 @@ jobs: name: cargo-deny (advisories, licenses, bans, ...) needs: diff if: needs.diff.outputs.isRust == 'true' - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] steps: - uses: actions/checkout@v3 - uses: EmbarkStudios/cargo-deny-action@v1 @@ -111,7 +111,7 @@ jobs: cargo-udeps: needs: diff if: needs.diff.outputs.isRust == 'true' - runs-on: ubuntu-latest + runs-on: [self-hosted, ubuntu-latest] steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1