-
Notifications
You must be signed in to change notification settings - Fork 146
61 lines (46 loc) · 1.27 KB
/
check-build.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
name: Configure and build
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
style:
name: coding style
uses: ./.github/workflows/check-coding-style.yaml
build:
strategy:
matrix:
os: [ubuntu-latest] #[ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install linux dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update -q
sudo apt-get install -qy gfortran gcc g++
sudo apt-get install -qy expect
sudo apt-get install -qy libmotif-dev
- name: Install macOS dependencies
if: matrix.os == 'macos-latest'
run: |
brew install gcc
brew install tcl-tk
brew install openmotif
- name: Compiler versions
run: |
gfortran --version
gcc --version
g++ --version
make --version
- name: Checkout
uses: actions/checkout@v3
- name: Build EGSnrc
run: |
HEN_HOUSE/scripts/configure.expect ${{ runner.os }}.conf | tee configure.log
for f in HEN_HOUSE/log/*.log configure.log; do echo $f; cat $f; done
(! grep -i fail configure.log)