Skip to content

Commit

Permalink
Include the self-hosted flag in GH Workflows (MystenLabs#1585)
Browse files Browse the repository at this point in the history
* switch rust to use self-hosted linux

* updated all workflows to use [self-hosted, ubuntu-latest]
  • Loading branch information
todd-mystenlabs authored Apr 26, 2022
1 parent f765ca6 commit 1493444
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:

jobs:
diff:
runs-on: ubuntu-latest
runs-on: [self-hosted, ubuntu-latest]
outputs:
isRust: ${{ steps.diff.outputs.isRust }}
steps:
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
diff:
runs-on: ubuntu-latest
runs-on: [self-hosted, ubuntu-latest]
outputs:
isRust: ${{ steps.diff.outputs.isRust }}
steps:
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/explorer-client-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ env:

jobs:
diff:
runs-on: ubuntu-latest
runs-on: [self-hosted, ubuntu-latest]
outputs:
isRust: ${{ steps.diff.outputs.isRust }}
steps:
Expand All @@ -41,15 +41,15 @@ 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

test:
needs: diff
if: needs.diff.outputs.isRust == 'true'
runs-on: ubuntu-latest
runs-on: [self-hosted, ubuntu-latest]
strategy:
fail-fast: false
steps:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -103,15 +103,15 @@ 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

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
Expand Down

0 comments on commit 1493444

Please sign in to comment.