-
Notifications
You must be signed in to change notification settings - Fork 3
132 lines (126 loc) · 4.28 KB
/
main.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
on:
push:
paths-ignore:
- 'docs/**'
- 'paper/**'
- 'README.md'
- 'COPYING'
- '.gitignore'
branches:
- main
pull_request:
types: [ready_for_review]
pull_request_review:
types: [submitted]
workflow_dispatch:
inputs:
name:
description: "Reason"
default: "Manual Trigger"
jobs:
build_and_test_gcc_old:
runs-on: ubuntu-20.04
name: Build & Test GCC (20.04)
env:
COMPILER_VERS: 7 8
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prep Environment
run: |
sudo apt-get update
sudo apt-get install -y curl csh git python3.8
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py
sudo python3 -m pip install cmake
- name: Build
run: |
for ver in ${COMPILER_VERS}; do
sudo apt-get install -y gcc-${ver} g++-${ver};
if [ ${ver} -eq 7 ]; then \
sudo CC=gcc-${ver} CXX=g++-${ver} bash build.sh 1; \
else \
sudo CC=gcc-${ver} CXX=g++-${ver} NO_CAL_TEST=ON bash build.sh; \
fi;
sudo apt-get remove -y gcc-${ver} g++-${ver};
done;
build_and_test_gcc:
name: Build & Test GCC (22.04)
runs-on: ubuntu-22.04
env:
COMPILER_VERS: 9 10 11 12
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prep Environment
run: |
sudo apt-get update
sudo apt-get install -y curl csh git python3
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
python3 -m pip install cmake
- name: Build
run: |
for ver in ${COMPILER_VERS}; do
sudo apt-get install -y gcc-${ver} g++-${ver};
if [ ${ver} -eq 12 ]; then \
sudo CC=gcc-${ver} CXX=g++-${ver} bash build.sh 1; \
else \
sudo CC=gcc-${ver} CXX=g++-${ver} NO_CAL_TEST=ON bash build.sh; \
fi;
sudo apt-get remove -y gcc-${ver} g++-${ver};
done;
build_and_test_clang_old:
runs-on: ubuntu-20.04
name: Build & Test clang (20.04)
env:
COMPILER_VERS: 7 8 9
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prep Environment
run: |
sudo apt-get update
sudo apt-get install -y curl csh git python3.8
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 2
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py
sudo python3 -m pip install cmake
- name: Build
run: |
for ver in ${COMPILER_VERS}; do
sudo apt-get install -y clang-${ver} clang++-${ver} libomp5-${ver} libomp-${ver}-dev;
if [ ${ver} -eq 7 ]; then \
sudo CC=clang-${ver} CXX=clang++-${ver} bash build.sh 1; \
else \
sudo CC=clang-${ver} CXX=clang++-${ver} NO_CAL_TEST=ON bash build.sh; \
fi;
sudo apt-get remove -y clang-${ver} clang++-${ver} libomp5-${ver} libomp-${ver}-dev;
done;
build_and_test_clang:
name: Build & Test clang (22.04)
runs-on: ubuntu-22.04
env:
COMPILER_VERS: 11 12 13 14 15
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prep Environment
run: |
sudo apt-get update
sudo apt-get install -y curl csh git python3
curl -sSL https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py
python3 -m pip install cmake
- name: Build, Install & Sometimes Test
run: |
for ver in ${COMPILER_VERS}; do
sudo apt-get install -y clang-${ver} clang++-${ver} libomp5-${ver} libomp-${ver}-dev;
if [ ${ver} -eq 15 ]; then \
sudo CC=clang-${ver} CXX=clang++-${ver} bash build.sh 1; \
else \
sudo CC=clang-${ver} CXX=clang++-${ver} NO_CAL_TEST=ON bash build.sh; \
fi;
sudo apt-get remove -y clang-${ver} clang++-${ver} libomp5-${ver} libomp-${ver}-dev;
done;