8
8
- " *.bazel*"
9
9
- .github/workflows/swift.yml
10
10
- .github/actions/fetch-codeql/action.yml
11
+ - .github/actions/cache-query-compilation/action.yml
11
12
- codeql-workspace.yml
12
13
- .pre-commit-config.yaml
13
14
- " !**/*.md"
14
15
- " !**/*.qhelp"
15
16
branches :
16
17
- main
18
+ - rc/*
19
+ push :
20
+ paths :
21
+ - " swift/**"
22
+ - " misc/bazel/**"
23
+ - " *.bazel*"
24
+ - .github/workflows/swift.yml
25
+ - .github/actions/fetch-codeql/action.yml
26
+ - .github/actions/cache-query-compilation/action.yml
27
+ - codeql-workspace.yml
28
+ - " !**/*.md"
29
+ - " !**/*.qhelp"
30
+ branches :
31
+ - main
32
+ - rc/*
17
33
18
34
jobs :
19
- changes :
20
- runs-on : ubuntu-latest
21
- outputs :
22
- codegen : ${{ steps.filter.outputs.codegen }}
23
- ql : ${{ steps.filter.outputs.ql }}
24
- steps :
25
- - uses : dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
26
- id : filter
27
- with :
28
- filters : |
29
- codegen:
30
- - '.github/workflows/swift.yml'
31
- - "misc/bazel/**"
32
- - "*.bazel*"
33
- - 'swift/actions/setup-env/**'
34
- - '.pre-commit-config.yaml'
35
- - 'swift/codegen/**'
36
- - 'swift/schema.py'
37
- - 'swift/**/*.dbscheme'
38
- - 'swift/ql/lib/codeql/swift/elements.qll'
39
- - 'swift/ql/lib/codeql/swift/elements/**'
40
- - 'swift/ql/lib/codeql/swift/generated/**'
41
- - 'swift/ql/test/extractor-tests/generated/**'
42
- - 'swift/ql/.generated.list'
43
- ql:
44
- - 'github/workflows/swift.yml'
45
- - 'swift/**/*.ql'
46
- - 'swift/**/*.qll'
47
35
# not using a matrix as you cannot depend on a specific job in a matrix, and we want to start linux checks
48
36
# without waiting for the macOS build
49
37
build-and-test-macos :
@@ -54,46 +42,41 @@ jobs:
54
42
- uses : ./swift/actions/run-quick-tests
55
43
- uses : ./swift/actions/print-unextracted
56
44
build-and-test-linux :
57
- runs-on : ubuntu-20.04
45
+ runs-on : ubuntu-latest-xl
58
46
steps :
59
47
- uses : actions/checkout@v3
60
48
- uses : ./swift/actions/create-extractor-pack
61
49
- uses : ./swift/actions/run-quick-tests
62
50
- uses : ./swift/actions/print-unextracted
63
51
qltests-linux :
64
52
needs : build-and-test-linux
65
- runs-on : ubuntu-latest
53
+ runs-on : ubuntu-latest-xl
66
54
steps :
67
55
- uses : actions/checkout@v3
68
56
- uses : ./swift/actions/run-ql-tests
69
57
qltests-macos :
58
+ if : ${{ github.event_name == 'pull_request' }}
70
59
needs : build-and-test-macos
71
60
runs-on : macos-12-xl
72
- strategy :
73
- fail-fast : false
74
- matrix :
75
- slice : ["1/2", "2/2"]
76
61
steps :
77
62
- uses : actions/checkout@v3
78
63
- uses : ./swift/actions/run-ql-tests
79
- with :
80
- flags : --slice ${{ matrix.slice }}
81
64
integration-tests-linux :
82
65
needs : build-and-test-linux
83
- runs-on : ubuntu-latest
66
+ runs-on : ubuntu-latest-xl
84
67
steps :
85
68
- uses : actions/checkout@v3
86
69
- uses : ./swift/actions/run-integration-tests
87
70
integration-tests-macos :
71
+ if : ${{ github.event_name == 'pull_request' }}
88
72
needs : build-and-test-macos
89
73
runs-on : macos-12-xl
90
74
steps :
91
75
- uses : actions/checkout@v3
92
76
- uses : ./swift/actions/run-integration-tests
93
77
codegen :
78
+ if : ${{ github.event_name == 'pull_request' }}
94
79
runs-on : ubuntu-latest
95
- needs : changes
96
- if : ${{ needs.changes.outputs.codegen == 'true' }}
97
80
steps :
98
81
- uses : actions/checkout@v3
99
82
- uses : ./swift/actions/setup-env
114
97
name : swift-generated-cpp-files
115
98
path : generated-cpp-files/**
116
99
database-upgrade-scripts :
100
+ if : ${{ github.event_name == 'pull_request' }}
117
101
runs-on : ubuntu-latest
118
102
steps :
119
103
- uses : actions/checkout@v3
0 commit comments