-
Notifications
You must be signed in to change notification settings - Fork 30
159 lines (139 loc) · 4.06 KB
/
build-test.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
name: Build
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: linux-docs
os: ubuntu-22.04
preset: default-gcc-conda
check: "no"
doc: "yes"
devenv: "environment-dev-linux.yml"
jbuild: 4
jcheck: 2
- name: linux-default-gcc
os: ubuntu-22.04
preset: default-gcc-conda
check: "yes"
doc: "no"
devenv: "environment-dev-linux.yml"
jbuild: 4
jcheck: 2
- name: linux-debug-gcc
os: ubuntu-22.04
preset: debug-gcc-conda
check: "yes"
doc: "no"
devenv: "environment-dev-linux.yml"
jbuild: 4
jcheck: 2
- name: linux-nofortran-gcc
os: ubuntu-22.04
preset: nofortran-gcc-conda
check: "yes"
doc: "no"
devenv: "environment-dev-linux.yml"
jbuild: 4
jcheck: 2
- name: linux-lgpl-gcc
os: ubuntu-22.04
preset: lgpl-gcc-conda
check: "yes"
doc: "no"
devenv: "environment-dev-linux.yml"
jbuild: 4
jcheck: 2
- name: mac-default-clang
os: macos-13
preset: default-clang-conda
check: "yes"
doc: "no"
devenv: "environment-dev-mac.yml"
jbuild: 4
jcheck: 2
- name: macm1-default-clang
os: macos-14
preset: default-clang-conda
check: "yes"
doc: "no"
devenv: "environment-dev-mac.yml"
jbuild: 2
jcheck: 2
- name: macm1-debug-clang
os: macos-14
preset: debug-clang-conda
check: "yes"
doc: "no"
devenv: "environment-dev-mac.yml"
jbuild: 2
jcheck: 2
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 10
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
channels: conda-forge
channel-priority: true
activate-environment: arts
environment-file: ${{ matrix.devenv }}
- shell: bash -l {0}
run: |
conda info
conda list
conda config --show-sources
conda config --show
printenv | sort
- name: Setup (Linux)
if: runner.os == 'Linux' && matrix.doc == 'yes'
run: |
sudo apt-get update
sudo apt-get install -y texlive texlive-latex-extra doxygen
- name: Configure
shell: bash -l {0}
run: |
cmake --preset=${{ matrix.preset }}
- name: Build PyARTS
shell: bash -l {0}
run: |
cmake --build build -j${{ matrix.jbuild }} --target pyarts
- name: Docs
if: matrix.doc == 'yes'
shell: bash -l {0}
run: |
cmake --build build -j${{ matrix.jbuild }} --target apidoc pyarts_docs
tar -zcf doxygen.tar.gz build/doc/doxygen/html
tar -zcf sphinx.tar.gz build/python/doc/build
- name: Check
if: matrix.check == 'yes'
shell: bash -l {0}
run: |
cmake --build build -j${{ matrix.jcheck }} --target check
- name: Python Wheel
if: matrix.check == 'yes'
shell: bash -l {0}
run: |
cmake --build build --target pyarts-package
- name: Build SRC
if: matrix.check == 'yes'
shell: bash -l {0}
run: |
make -C build/src -j${{ matrix.jbuild }}
- uses: actions/upload-artifact@v4
if: matrix.doc == 'yes'
with:
name: docs-doxygen
path: |
doxygen.tar.gz
- uses: actions/upload-artifact@v4
if: matrix.doc == 'yes'
with:
name: docs-sphinx
path: |
sphinx.tar.gz