Skip to content

Commit a188f42

Browse files
committed
.github: only run _minimal build for PRs
PRs which doesn't have the label ci:main. Signed-off-by: Richard Alpe <[email protected]>
1 parent 6cdcd57 commit a188f42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/trigger.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ jobs:
1515
uses: ./.github/workflows/build.yml
1616
with:
1717
name: "infix"
18-
target: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:main')) && 'x86_64' || 'x86_64_minimal' }}
18+
target: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ci:main') && 'x86_64_minimal' || 'x86_64' }}
1919

2020
build-aarch64:
2121
if: startsWith(github.repository, 'kernelkit/')
2222
uses: ./.github/workflows/build.yml
2323
with:
2424
name: "infix"
25-
target: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:main')) && 'aarch64' || 'aarch64_minimal' }}
25+
target: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ci:main') && 'aarch64_minimal' || 'aarch64' }}
2626

2727
test-run-x86_64:
2828
if: startsWith(github.repository, 'kernelkit/')
2929
needs: build-x86_64
3030
uses: ./.github/workflows/test.yml
3131
with:
32-
target: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'ci:main')) && 'x86_64' || 'x86_64_minimal' }}
32+
target: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'ci:main') && 'x86_64_minimal' || 'x86_64' }}
3333
name: "infix"
3434

3535
test-publish-x86_64:

0 commit comments

Comments
 (0)