-
Notifications
You must be signed in to change notification settings - Fork 9
65 lines (58 loc) · 1.93 KB
/
macosx-clang-mpich.yml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: PR tests (clang-14, macosx, mpich)
# Trigger the workflow on push or pull request
on:
push:
branches:
- develop
- main
pull_request:
types: [opened, reopened, synchronize, converted_to_draft, ready_for_review]
concurrency:
group: ${{ github.event.repository.name }}-${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build:
runs-on: macos-12
if: github.event.pull_request.draft == false
strategy:
fail-fast: false
env:
CMAKE_BUILD_TYPE: release
VT_LB_ENABLED: 1
VT_TRACE_ENABLED: 1
VT_WERROR: 1
CMAKE_CXX_STANDARD: 17
CMAKE_GENERATOR: "Unix Makefiles"
CMAKE_BUILD_PARALLEL_LEVEL: 4
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.ccache
key: ${{ runner.os }}-macosx-clang-14-ccache-${{ secrets.GH_ACTIONS_CACHE_VERSION }}-${{ hashFiles('**/*') }}
restore-keys: |
${{ runner.os }}-macosx-clang-14-ccache-${{ secrets.GH_ACTIONS_CACHE_VERSION }}
- uses: actions/cache@v4
id: mpich-cache
with:
path: ~/.mpich
key: ${{ runner.os }}-macosx-clang-14-mpich-${{ hashFiles('**/.github/workflows/macosx-clang-mpich.yml', '**/ci/deps/mpich.sh') }}
- name: Install Dependencies
shell: bash
run: brew bundle --file=ci/Brewfile
- name: Modify hosts file
shell: bash
run: echo "127.0.0.1 $(hostname)" | sudo tee -a /etc/hosts
- name: Build mpich
if: steps.mpich-cache.outputs.cache-hit != 'true'
shell: bash
run: |
ci/deps/mpich.sh 3.3.2 -j4 $(grealpath ~/.mpich)
- name: Build
shell: bash
run: |
PATH=~/.mpich/bin:$PATH ci/build_cpp.sh $(pwd) $(pwd)/build
- name: Test
shell: bash
run: |
PATH=~/.mpich/bin:$PATH ci/test_cpp.sh $(pwd) $(pwd)/build