88 - " *.bazel*"
99 - .github/workflows/swift.yml
1010 - .github/actions/fetch-codeql/action.yml
11+ - .github/actions/cache-query-compilation/action.yml
1112 - codeql-workspace.yml
1213 - .pre-commit-config.yaml
1314 - " !**/*.md"
1415 - " !**/*.qhelp"
1516 branches :
1617 - 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/*
1733
1834jobs :
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'
4735 # not using a matrix as you cannot depend on a specific job in a matrix, and we want to start linux checks
4836 # without waiting for the macOS build
4937 build-and-test-macos :
@@ -54,46 +42,41 @@ jobs:
5442 - uses : ./swift/actions/run-quick-tests
5543 - uses : ./swift/actions/print-unextracted
5644 build-and-test-linux :
57- runs-on : ubuntu-20.04
45+ runs-on : ubuntu-latest-xl
5846 steps :
5947 - uses : actions/checkout@v3
6048 - uses : ./swift/actions/create-extractor-pack
6149 - uses : ./swift/actions/run-quick-tests
6250 - uses : ./swift/actions/print-unextracted
6351 qltests-linux :
6452 needs : build-and-test-linux
65- runs-on : ubuntu-latest
53+ runs-on : ubuntu-latest-xl
6654 steps :
6755 - uses : actions/checkout@v3
6856 - uses : ./swift/actions/run-ql-tests
6957 qltests-macos :
58+ if : ${{ github.event_name == 'pull_request' }}
7059 needs : build-and-test-macos
7160 runs-on : macos-12-xl
72- strategy :
73- fail-fast : false
74- matrix :
75- slice : ["1/2", "2/2"]
7661 steps :
7762 - uses : actions/checkout@v3
7863 - uses : ./swift/actions/run-ql-tests
79- with :
80- flags : --slice ${{ matrix.slice }}
8164 integration-tests-linux :
8265 needs : build-and-test-linux
83- runs-on : ubuntu-latest
66+ runs-on : ubuntu-latest-xl
8467 steps :
8568 - uses : actions/checkout@v3
8669 - uses : ./swift/actions/run-integration-tests
8770 integration-tests-macos :
71+ if : ${{ github.event_name == 'pull_request' }}
8872 needs : build-and-test-macos
8973 runs-on : macos-12-xl
9074 steps :
9175 - uses : actions/checkout@v3
9276 - uses : ./swift/actions/run-integration-tests
9377 codegen :
78+ if : ${{ github.event_name == 'pull_request' }}
9479 runs-on : ubuntu-latest
95- needs : changes
96- if : ${{ needs.changes.outputs.codegen == 'true' }}
9780 steps :
9881 - uses : actions/checkout@v3
9982 - uses : ./swift/actions/setup-env
11497 name : swift-generated-cpp-files
11598 path : generated-cpp-files/**
11699 database-upgrade-scripts :
100+ if : ${{ github.event_name == 'pull_request' }}
117101 runs-on : ubuntu-latest
118102 steps :
119103 - uses : actions/checkout@v3
0 commit comments