forked from fluent/fluent-bit
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (46 loc) · 1.34 KB
/
pr-windows-build.yaml
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
45
46
47
48
49
50
51
name: PR - Windows checks
#
# Test PRs on Windows
#
# This won't run automatically on PRs from untrusted repos, it must be approved
# manually. If PR authors want to run it themselves, they should enable running
# actions on their fork, then invoke it on their branch via their forked repo's
# Actions tab.
#
on:
# Enable invocation via Github repo Actions tab. Having this in the repo
# allows people with github forks to run this job on their own branches to
# build Windows branches conveniently. See DEVELOPER_GUIDE.md.
workflow_dispatch:
pull_request:
# Limit to just those changes that 'might' affect Windows for automated builds
# We can always do a manual build for a branch
paths:
- '**.h'
- '**.c'
- '**.windows'
- './conf/**'
- './cmake/**'
types:
- opened
- reopened
- synchronize
jobs:
pr-windows-build:
uses: ./.github/workflows/call-build-windows.yaml
with:
version: ${{ github.sha }}
ref: ${{ github.sha }}
environment: pr
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
run-windows-unit-tests:
needs:
- pr-windows-build
uses: ./.github/workflows/call-windows-unit-tests.yaml
with:
version: ${{ github.sha }}
ref: ${{ github.sha }}
environment: pr
secrets:
token: ${{ secrets.GITHUB_TOKEN }}