-
Notifications
You must be signed in to change notification settings - Fork 55
44 lines (40 loc) · 963 Bytes
/
pull-request.yaml
File metadata and controls
44 lines (40 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: Pull Request
on:
pull_request:
merge_group:
concurrency:
group: pr-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: ${{ matrix.variant }}
uses: ./.github/workflows/build.yaml
permissions:
attestations: write
contents: read
id-token: write
packages: write
secrets: inherit
strategy:
fail-fast: false
matrix:
variant:
- main
- noml
- cuda
- openvino
with:
variant: ${{ matrix.variant }}
release: false
status:
if: ${{ !cancelled() }}
name: Build Success
needs: build
runs-on: ubuntu-latest
steps:
- if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1
- if: ${{ !(contains(needs.*.result, 'failure')) }}
run: echo "All builds passed"