77 - develop
88 - 1.*
99 pull_request :
10+ types : [opened, reopened, synchronize, converted_to_draft, ready_for_review]
1011
11- jobs :
12+ concurrency :
13+ group : ${{ github.event.repository.name }}-${{ github.ref }}-${{ github.workflow }}
14+ cancel-in-progress : ${{ github.event_name == 'pull_request' }}
1215
16+ jobs :
1317 build :
14-
1518 runs-on : macos-10.15
1619
20+ if : github.event.pull_request.draft == false
21+
1722 strategy :
1823 fail-fast : false
1924
@@ -28,34 +33,34 @@ jobs:
2833 CMAKE_BUILD_PARALLEL_LEVEL : 4
2934
3035 steps :
31- - uses : actions/checkout@v2
32- - uses : actions/cache@v2
33- with :
34- path : ~/.ccache
35- key : ${{ runner.os }}-macosx-clang-8-ccache-${{ secrets.GH_ACTIONS_CACHE_VERSION }}-${{ hashFiles('**/*') }}
36- restore-keys : |
37- ${{ runner.os }}-macosx-clang-8-ccache-${{ secrets.GH_ACTIONS_CACHE_VERSION }}
38- - uses : actions/cache@v2
39- id : mpich-cache
40- with :
41- path : ~/.mpich
42- key : ${{ runner.os }}-macosx-clang-8-mpich-${{ hashFiles('**/.github/workflows/macosx-clang-mpich.yml', '**/ci/deps/mpich.sh') }}
43- - name : Install Dependencies
44- shell : bash
45- run : brew bundle --file=ci/Brewfile
46- - name : Modify hosts file
47- shell : bash
48- run : echo "127.0.0.1 $(hostname)" | sudo tee -a /etc/hosts
49- - name : Build mpich
50- if : steps.mpich-cache.outputs.cache-hit != 'true'
51- shell : bash
52- run : |
53- ci/deps/mpich.sh 3.3.2 -j4 $(grealpath ~/.mpich)
54- - name : Build
55- shell : bash
56- run : |
57- PATH=~/.mpich/bin:$PATH ci/build_cpp.sh $(pwd) $(pwd)/build
58- - name : Test
59- shell : bash
60- run : |
61- PATH=~/.mpich/bin:$PATH ci/test_cpp.sh $(pwd) $(pwd)/build
36+ - uses : actions/checkout@v2
37+ - uses : actions/cache@v2
38+ with :
39+ path : ~/.ccache
40+ key : ${{ runner.os }}-macosx-clang-8-ccache-${{ secrets.GH_ACTIONS_CACHE_VERSION }}-${{ hashFiles('**/*') }}
41+ restore-keys : |
42+ ${{ runner.os }}-macosx-clang-8-ccache-${{ secrets.GH_ACTIONS_CACHE_VERSION }}
43+ - uses : actions/cache@v2
44+ id : mpich-cache
45+ with :
46+ path : ~/.mpich
47+ key : ${{ runner.os }}-macosx-clang-8-mpich-${{ hashFiles('**/.github/workflows/macosx-clang-mpich.yml', '**/ci/deps/mpich.sh') }}
48+ - name : Install Dependencies
49+ shell : bash
50+ run : brew bundle --file=ci/Brewfile
51+ - name : Modify hosts file
52+ shell : bash
53+ run : echo "127.0.0.1 $(hostname)" | sudo tee -a /etc/hosts
54+ - name : Build mpich
55+ if : steps.mpich-cache.outputs.cache-hit != 'true'
56+ shell : bash
57+ run : |
58+ ci/deps/mpich.sh 3.3.2 -j4 $(grealpath ~/.mpich)
59+ - name : Build
60+ shell : bash
61+ run : |
62+ PATH=~/.mpich/bin:$PATH ci/build_cpp.sh $(pwd) $(pwd)/build
63+ - name : Test
64+ shell : bash
65+ run : |
66+ PATH=~/.mpich/bin:$PATH ci/test_cpp.sh $(pwd) $(pwd)/build
0 commit comments