Skip to content

Commit 9d08bff

Browse files
bkchrpepoviola
andauthored
Run all jobs on the self hosted machines (#964)
For benchmarking we use a special machine that reports the `benchmark` tag. <!-- Remember that you can run `/merge` to enable auto-merge in the PR --> <!-- Remember to modify the changelog. If you don't need to modify it, you can check the following box. Instead, if you have already modified it, simply delete the following line. --> - [x] Does not require a CHANGELOG entry --------- Co-authored-by: Javier Viola <[email protected]>
1 parent 2b16678 commit 9d08bff

File tree

14 files changed

+43
-91
lines changed

14 files changed

+43
-91
lines changed

.github/install-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
sudo apt update
4-
sudo apt install --assume-yes openssl pkg-config g++ make cmake protobuf-compiler libssl-dev libclang-dev libudev-dev git
4+
sudo apt install --assume-yes openssl pkg-config g++ make cmake protobuf-compiler libssl-dev libclang-dev libudev-dev git lz4
55

66
# Free space on the runner
77
df -h

.github/workflows/auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
set-auto-merge:
10-
runs-on: ubuntu-latest
10+
runs-on: self-hosted
1111
environment: master
1212
timeout-minutes: 10
1313
# Important! This forces the job to run only on comments on Pull Requests that starts with '/merge'

.github/workflows/changelog.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# Job required by "confirmChangelogChecksPassed"
2020
verify-changelog-updated:
2121
name: Verify that Changelog is Updated
22-
runs-on: ubuntu-latest
22+
runs-on: self-hosted
2323
env:
2424
GITHUB_TOKEN: ${{ github.token }}
2525
steps:
@@ -36,7 +36,7 @@ jobs:
3636
# Job required by "confirmChangelogChecksPassed"
3737
verify-changelog-valid:
3838
name: Verify that Changelog is valid
39-
runs-on: ubuntu-latest
39+
runs-on: self-hosted
4040
env:
4141
GITHUB_TOKEN: ${{ github.token }}
4242
steps:
@@ -59,7 +59,7 @@ jobs:
5959
# it will still require all the steps to succeed.
6060
# If you add more jobs, remember to add them to the "needs" array.
6161
confirmChangelogChecksPassed:
62-
runs-on: ubuntu-latest
62+
runs-on: self-hosted
6363
name: All changelog checks passed
6464
# If any new job gets added, be sure to add it to this list
6565
needs:

.github/workflows/check-features.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515
jobs:
1616
check:
1717
name: Check workspace features
18-
runs-on: ubuntu-22.04
18+
runs-on: self-hosted
1919

2020
steps:
2121
- name: Checkout

.github/workflows/check-migrations.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions: {}
2121
jobs:
2222
# This generates a matrix with all the required jobs which will be run in the next step
2323
runtime-matrix:
24-
runs-on: ubuntu-latest
24+
runs-on: self-hosted
2525
outputs:
2626
runtime: ${{ steps.runtime.outputs.runtime }}
2727
name: Extract tasks from matrix
@@ -44,7 +44,7 @@ jobs:
4444
# if they all pass, that job will pass too.
4545
check-migrations:
4646
needs: [runtime-matrix]
47-
runs-on: ubuntu-latest
47+
runs-on: self-hosted
4848
strategy:
4949
# Ensure the other jobs continue
5050
fail-fast: false
@@ -153,7 +153,7 @@ jobs:
153153
# it will still require all the steps to succeed.
154154
# If you add more jobs, remember to add them to the "needs" array.
155155
confirmMigrationsPassed:
156-
runs-on: ubuntu-latest
156+
runs-on: self-hosted
157157
name: All migrations passed
158158
# If any new job gets added, be sure to add it to this array
159159
needs: [check-migrations]

.github/workflows/clippy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ concurrency:
1313

1414
jobs:
1515
clippy:
16-
runs-on: ubuntu-22.04
16+
runs-on: self-hosted
1717

1818
steps:
1919
- name: Checkout

.github/workflows/cmd.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions: # allow the action to comment on the PR
1212

1313
jobs:
1414
fellows:
15-
runs-on: ubuntu-latest
15+
runs-on: self-hosted
1616
outputs:
1717
github-handles: ${{ steps.load-fellows.outputs.github-handles }}
1818
steps:
@@ -27,7 +27,7 @@ jobs:
2727
reject-non-fellows:
2828
needs: fellows
2929
if: ${{ startsWith(github.event.comment.body, '/cmd') && !contains(needs.fellows.outputs.github-handles, github.event.sender.login) }}
30-
runs-on: ubuntu-latest
30+
runs-on: self-hosted
3131
steps:
3232
- name: Add reaction to rejected comment
3333
uses: actions/github-script@v7
@@ -56,7 +56,7 @@ jobs:
5656
acknowledge:
5757
needs: fellows
5858
if: ${{ startsWith(github.event.comment.body, '/cmd') && contains(needs.fellows.outputs.github-handles, github.event.sender.login) }}
59-
runs-on: ubuntu-latest
59+
runs-on: self-hosted
6060
steps:
6161
- name: Add reaction to triggered comment
6262
uses: actions/github-script@v7
@@ -72,7 +72,7 @@ jobs:
7272
7373
clean:
7474
needs: fellows
75-
runs-on: ubuntu-latest
75+
runs-on: self-hosted
7676
steps:
7777
- name: Checkout
7878
uses: actions/checkout@v4
@@ -108,7 +108,7 @@ jobs:
108108
help:
109109
needs: [clean, fellows]
110110
if: ${{ startsWith(github.event.comment.body, '/cmd') && contains(github.event.comment.body, '--help') && contains(needs.fellows.outputs.github-handles, github.event.sender.login) }}
111-
runs-on: ubuntu-latest
111+
runs-on: self-hosted
112112
steps:
113113
- name: Checkout
114114
uses: actions/checkout@v4
@@ -177,7 +177,7 @@ jobs:
177177
# Get PR branch name, because the issue_comment event does not contain the PR branch name
178178
get-pr-branch:
179179
needs: [clean, fellows]
180-
runs-on: ubuntu-latest
180+
runs-on: self-hosted
181181
outputs:
182182
pr-branch: ${{ steps.get-pr.outputs.pr_branch }}
183183
repo: ${{ steps.get-pr.outputs.repo }}
@@ -220,7 +220,7 @@ jobs:
220220
env:
221221
JOB_NAME: 'cmd'
222222
if: ${{ startsWith(github.event.comment.body, '/cmd') && !contains(github.event.comment.body, '--help') && contains(needs.fellows.outputs.github-handles, github.event.sender.login) }}
223-
runs-on: ${{ startsWith(github.event.comment.body, '/cmd bench') && 'self-hosted' || 'ubuntu-22.04' }}
223+
runs-on: ${{ startsWith(github.event.comment.body, '/cmd bench') && 'benchmark' || 'self-hosted' }}
224224
steps:
225225
- name: Get command
226226
uses: actions-ecosystem/action-regex-match@v2

.github/workflows/fmt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414

1515
jobs:
1616
rustfmt:
17-
runs-on: ubuntu-22.04
17+
runs-on: self-hosted
1818

1919
steps:
2020
- name: Checkout

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
collect-release-information:
11-
runs-on: ubuntu-latest
11+
runs-on: self-hosted
1212
outputs:
1313
should-release: ${{ steps.run.outputs.should-release }}
1414
version: ${{ steps.run.outputs.version }}
@@ -23,7 +23,7 @@ jobs:
2323
runtime-matrix:
2424
needs: [ collect-release-information ]
2525
if: needs.collect-release-information.outputs.should-release == '1'
26-
runs-on: ubuntu-latest
26+
runs-on: self-hosted
2727
outputs:
2828
runtime: ${{ steps.runtime.outputs.runtime }}
2929
steps:
@@ -37,7 +37,7 @@ jobs:
3737
build-runtimes:
3838
needs: [ runtime-matrix ]
3939
continue-on-error: true
40-
runs-on: ubuntu-latest
40+
runs-on: self-hosted
4141
strategy:
4242
matrix:
4343
runtime: ${{ fromJSON(needs.runtime-matrix.outputs.runtime) }}
@@ -103,7 +103,7 @@ jobs:
103103
path: ${{ steps.srtool_compact.outputs.wasm_compressed }}
104104

105105
publish-release:
106-
runs-on: ubuntu-latest
106+
runs-on: self-hosted
107107
needs: [ build-runtimes, collect-release-information ]
108108
outputs:
109109
release_url: ${{ steps.create-release.outputs.html_url }}
@@ -185,7 +185,7 @@ jobs:
185185
publish-runtimes:
186186
needs: [ runtime-matrix, publish-release ]
187187
continue-on-error: true
188-
runs-on: ubuntu-latest
188+
runs-on: self-hosted
189189
env:
190190
RUNTIME_DIR: runtime
191191
strategy:
@@ -218,7 +218,7 @@ jobs:
218218

219219
package-compact-wasms:
220220
needs: [ build-runtimes, publish-release ]
221-
runs-on: ubuntu-latest
221+
runs-on: self-hosted
222222
steps:
223223
- name: Download compact artfacts
224224
uses: actions/download-artifact@v4

.github/workflows/review-bot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212

1313
jobs:
1414
review-approvals:
15-
runs-on: ubuntu-latest
15+
runs-on: self-hosted
1616
steps:
1717
- name: Extract content of artifact
1818
id: number

0 commit comments

Comments
 (0)