@@ -8,23 +8,37 @@ concurrency:
8
8
cancel-in-progress : true
9
9
10
10
jobs :
11
+
12
+ skip_checks :
13
+ name : Skip checks?
14
+ runs-on : macos-latest
15
+ steps :
16
+ - name : Checkout code
17
+ uses : actions/checkout@v4
18
+ with :
19
+ fetch-depth : 0
20
+ - name : Run PR analysis script
21
+ run : |
22
+ .github/workflows/scripts/check_diff.sh \
23
+ ${{ github.event.pull_request.head.ref }} \
24
+ ${{ github.event.pull_request.base.ref }} \
25
+ ${{ github.event.pull_request.head.repo.clone_url }}
26
+ outputs :
27
+ skip : ${{ env.SKIP_CHECKS }}
28
+
11
29
build_appleclang :
12
30
name : AppleClang
13
31
runs-on : macos-latest
32
+ needs : skip_checks
33
+ if : ${{ github.event.pull_request.draft == false && needs.skip_checks.outputs.skip == false }}
14
34
steps :
15
- - name : Run PR analysis
16
- uses : ./.github/workflows/pr-analysis.yml
17
- id : pr_analysis
18
35
- name : Checkout code
19
- if : ${{ github.event.pull_request.draft == false && steps.pr_analysis.outputs.skip == "false" }}
20
36
uses : actions/checkout@v4
21
37
- name : Install Python
22
- if : ${{ github.event.pull_request.draft == false && steps.pr_analysis.outputs.skip == "false" }}
23
38
uses : actions/setup-python@v5
24
39
with :
25
40
python-version : ' 3.x'
26
41
- name : Install brew dependencies
27
- if : ${{ github.event.pull_request.draft == false && steps.pr_analysis.outputs.skip == "false" }}
28
42
run : |
29
43
set +e
30
44
brew unlink gcc
@@ -41,22 +55,19 @@ jobs:
41
55
brew tap openpmd/openpmd
42
56
brew install openpmd-api
43
57
- name : Install pip dependencies
44
- if : ${{ github.event.pull_request.draft == false && steps.pr_analysis.outputs.skip == "false" }}
45
58
run : |
46
59
python3 -m pip install --upgrade pip
47
60
python3 -m pip install --upgrade build packaging setuptools wheel
48
61
python3 -m pip install --upgrade mpi4py
49
62
python3 -m pip install --upgrade -r Regression/requirements.txt
50
63
- name : CCache Cache
51
- if : ${{ github.event.pull_request.draft == false && steps.pr_analysis.outputs.skip == "false" }}
52
64
uses : actions/cache@v4
53
65
with :
54
66
path : ~/Library/Caches/ccache
55
67
key : ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
56
68
restore-keys : |
57
69
ccache-${{ github.workflow }}-${{ github.job }}-git-
58
70
- name : Build WarpX
59
- if : ${{ github.event.pull_request.draft == false && steps.pr_analysis.outputs.skip == "false" }}
60
71
run : |
61
72
export CCACHE_COMPRESS=1
62
73
export CCACHE_COMPRESSLEVEL=10
86
97
du -hs ~/Library/Caches/ccache
87
98
ccache -s
88
99
- name : Run pywarpx
89
- if : ${{ github.event.pull_request.draft == false && steps.pr_analysis.outputs.skip == "false" }}
90
100
run : |
91
101
export OMP_NUM_THREADS=1
92
102
0 commit comments