Skip to content

Commit 7671ead

Browse files
author
Bengt Lofgren
committed
allow manual dispatch
1 parent 52def68 commit 7671ead

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/solana.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ on:
1010
- 'shim/integration'
1111
paths:
1212
- 'solana/**'
13+
workflow_dispatch:
14+
inputs:
15+
job-to-run:
16+
description: 'Job to run (leave empty to run all)'
17+
required: false
18+
default: ''
19+
type: choice
20+
options:
21+
- ''
22+
- make-cargo-test-all
23+
- make-lint
24+
- make-check-idl
25+
- make-anchor-test
26+
- make-anchor-test-upgrade
1327

1428
env:
1529
CARGO_TERM_COLOR: always
@@ -27,6 +41,7 @@ jobs:
2741
make-cargo-test-all:
2842
name: make cargo-test-all
2943
runs-on: ubuntu-latest
44+
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job-to-run == '' || github.event.inputs.job-to-run == 'make-cargo-test-all' }}
3045
steps:
3146
- uses: actions/checkout@v4
3247
with:
@@ -48,6 +63,7 @@ jobs:
4863
make-lint:
4964
name: make lint
5065
runs-on: ubuntu-latest
66+
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job-to-run == '' || github.event.inputs.job-to-run == 'make-lint' }}
5167
steps:
5268
- uses: actions/checkout@v4
5369
with:
@@ -70,6 +86,7 @@ jobs:
7086
make-check-idl:
7187
name: make check-idl
7288
runs-on: ubuntu-latest
89+
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job-to-run == '' || github.event.inputs.job-to-run == 'make-check-idl' }}
7390
steps:
7491
- uses: actions/checkout@v4
7592
with:
@@ -95,6 +112,7 @@ jobs:
95112
make-anchor-test:
96113
name: make anchor-test
97114
runs-on: ubuntu-latest
115+
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job-to-run == '' || github.event.inputs.job-to-run == 'make-anchor-test' }}
98116
steps:
99117
- uses: actions/checkout@v4
100118
with:
@@ -124,6 +142,7 @@ jobs:
124142
make-anchor-test-upgrade:
125143
name: make anchor-test-upgrade
126144
runs-on: ubuntu-latest
145+
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.job-to-run == '' || github.event.inputs.job-to-run == 'make-anchor-test-upgrade' }}
127146
steps:
128147
- uses: actions/checkout@v4
129148
with:

0 commit comments

Comments
 (0)