-
Notifications
You must be signed in to change notification settings - Fork 21
85 lines (70 loc) · 1.8 KB
/
ci-github-actions.yaml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: GitHub Actions CI
on:
push:
branches:
- stable
- develop
pull_request:
branches:
- develop
jobs:
linux:
runs-on: ubuntu-latest
container: ${{ matrix.container }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_JOBNAME: ${{ matrix.jobname }}
GH_OS: Linux
strategy:
fail-fast: false
matrix:
jobname: [
ubuntu22-gcc,
ubuntu22-clang,
]
include:
- jobname: ubuntu22-gcc
container:
image: ghcr.io/philipfackler/xolotl-ci:ubuntu22-dev
options: -u root
- jobname: ubuntu22-clang
container:
image: ghcr.io/philipfackler/xolotl-ci:ubuntu22-dev
options: -u root
steps:
- name: Checkout Action
uses: actions/checkout@v1
- name: Configure
run: CI/scripts/run_step.sh configure
- name: Build
run: CI/scripts/run_step.sh build
- name: Test
run: CI/scripts/run_step.sh test
macos:
runs-on: macos-latest
env:
GH_YML_JOBNAME: ${{ matrix.jobname }}
GH_YML_OS: macOS
strategy:
fail-fast: false
matrix:
jobname: [
macos1015-xcode11
]
steps:
- name: Checkout Action
uses: actions/checkout@v1
- name: Setup Dependencies
run: |
brew install boost open-mpi hdf5-mpi make [email protected]
echo "PATH=/opt/homebrew/opt/[email protected]/libexec/bin:$PATH" >> $GITHUB_ENV
- name: Configure
run: |
export EXTRA_CMAKE_ARGS='-DXolotl_INCLUDE_RN_TPP_FILES=ON -DXolotl_ENABLE_TIMER_TESTS=OFF'
CI/scripts/run_step.sh configure
env:
PATH: ${{ env.PATH }}
- name: Build
run: CI/scripts/run_step.sh build
- name: Test
run: CI/scripts/run_step.sh test