Skip to content

Commit dba45c0

Browse files
Attempt to restrict trigger for ARM to labels
1 parent 8cf4991 commit dba45c0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ on:
99
pull_request:
1010
branches:
1111
- main
12+
types: [ labeled, opened, synchronize, reopened ]
1213
jobs:
1314
Build:
1415
strategy:
1516
matrix:
17+
isARM:
18+
- contains(github.event.pull_request.labels.*.name, 'arch:arm32') || contains(github.event.pull_request.labels.*.name, 'arch:arm64')
1619
options:
1720
- os: ubuntu-latest
1821
framework: net7.0
@@ -47,6 +50,14 @@ jobs:
4750
sdk: 6.0.x
4851
runtime: -x64
4952
codecov: false
53+
- os: buildjet-4vcpu-ubuntu-2204-arm
54+
framework: net6.0
55+
sdk: 6.0.x
56+
runtime: -x64
57+
codecov: false
58+
exclude:
59+
- isARM: false
60+
options.os: buildjet-4vcpu-ubuntu-2204-arm
5061

5162
runs-on: ${{matrix.options.os}}
5263

0 commit comments

Comments
 (0)