-
Notifications
You must be signed in to change notification settings - Fork 5
executable file
·60 lines (59 loc) · 2.01 KB
/
build_from_source.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
name: source build on runners
on:
workflow_dispatch:
schedule:
- cron: '44 4 * * 0'
push:
branches: [ main, develop, 'release*' ]
pull_request:
branches: [ main ]
jobs:
run-build-stack:
strategy:
fail-fast: false
matrix:
include:
- { os: ubuntu-20.04, CC: gcc-10, CXX: g++-10, python: '3.8' }
- { os: ubuntu-22.04, CC: gcc, CXX: g++, python: '3.9' }
- { os: ubuntu-22.04, CC: gcc, CXX: g++, python: '3.10' }
- { os: ubuntu-22.04, CC: clang, CXX: clang++, python: '3.11' }
- { os: ubuntu-22.04, CC: gcc-12, CXX: g++-12, python: '3.11' }
# - { os: macos-11, CC: clang, CXX: clang++, python: "3.10" }
# - { os: macos-12, CC: clang, CXX: clang++, python: "3.11" }
# - { os: macos-13, CC: clang, CXX: clang++, python: "3.11" }
runs-on: ${{ matrix.os }}
env:
CC: ${{ matrix.CC }}
CXX: ${{ matrix.CXX }}
steps:
- name: checkout_main_repo
uses: actions/checkout@v3
with:
repository: 'openmsr/openmc_install_scripts'
ref: '${{github.sha}}'
path: openmc_install_scripts
submodules: true
- name: bootstrap_ubuntu22.04
run: |
echo ${{ matrix.os }}
sudo apt-get -y update
if: ${{ matrix.os }} == 'ubuntu-22.04'
- name: moab-install
run: |
cd openmc_install_scripts/${{ matrix.os }}
sudo ./moab-install.sh
- name: double_down-install
run: |
cd openmc_install_scripts/${{ matrix.os }}
sudo ./double_down-install.sh
- name: dagmc-install
run: |
cd openmc_install_scripts/${{ matrix.os }}
sudo ./dagmc-install.sh
- name: openmc-install
run: |
cd openmc_install_scripts/${{ matrix.os }}
sudo ./openmc-install.sh
- name: check if openmc is runnable
run: |
/usr/local/lib/bin/openmc -v