Skip to content

Commit 9faaba0

Browse files
authored
Merge pull request #177 from bane-labs/sh-runner
workflows: migrate to self-hosted runner
2 parents 68e620e + e1f5b07 commit 9faaba0

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ on:
2121
description: 'Ref to build geth [default: latest bane-main; examples: v0.92.0, 0a4ff9d3e4a9ab432fd5812eb18c98e03b5a7432]'
2222
required: false
2323
default: ''
24+
upload_geth:
25+
description: 'Upload Geth binary artifact [default: false; examples: true, false]'
26+
required: false
27+
default: 'false'
28+
upload_alltools:
29+
description: 'Upload Alltools binary artifacts [default: false; examples: true, false]'
30+
required: false
31+
default: 'false'
2432
push_image:
2533
description: 'Push images to DockerHub [default: false; examples: true, false]'
2634
required: false
@@ -33,11 +41,11 @@ on:
3341
jobs:
3442
build_cli:
3543
name: Build geth and services
36-
runs-on: ${{matrix.os.name}}
44+
runs-on: [self-hosted, linux, x64]
3745
strategy:
3846
matrix:
39-
os: [{ name: ubuntu-22.04, bin-name: linux }, { name: macos-12, bin-name: darwin }]
40-
arch: [amd64, arm64]
47+
os: [{ name: "[self-hosted, linux, x64]", bin-name: linux }]
48+
arch: [amd64]
4149

4250
steps:
4351
- uses: actions/checkout@v4
@@ -62,15 +70,15 @@ jobs:
6270
mv ./build/bin/ ./build/alltools-${{ matrix.os.bin-name }}-${{ matrix.arch }}
6371
6472
- name: Upload Geth artifact
65-
if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
73+
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.upload_geth == 'true') }}
6674
uses: actions/upload-artifact@v4
6775
with:
6876
name: geth-${{ matrix.os.bin-name }}-${{ matrix.arch }}
6977
path: ./build/standalone/geth-${{ matrix.os.bin-name }}-${{ matrix.arch }}
7078
if-no-files-found: error
7179

7280
- name: Upload Alltools artifact
73-
if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
81+
if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.upload_alltools == 'true') }}
7482
uses: actions/upload-artifact@v4
7583
with:
7684
name: alltools-${{ matrix.os.bin-name }}-${{ matrix.arch }}
@@ -88,6 +96,7 @@ jobs:
8896
build_image:
8997
name: Build and push Docker image
9098
runs-on: ubuntu-22.04
99+
if: false
91100

92101
steps:
93102
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)