-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcmake_with_latest_compilers.yml
More file actions
112 lines (98 loc) · 3.17 KB
/
cmake_with_latest_compilers.yml
File metadata and controls
112 lines (98 loc) · 3.17 KB
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
name: CMakeWithLatestCompilers
defaults:
run:
shell: bash -ieo pipefail {0}
on:
schedule:
- cron: '0 0 * * 1'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up latest GCC
uses: egor-tensin/setup-gcc@v1
with:
version: 11
platform: x64
- name: Set up latest Clang
uses: egor-tensin/setup-clang@v1
with:
version: 13
platform: x64
- name: Compilers' version
run: |
gcc --version
g++ --version
clang --version
clang++ --version
- name: Install dependencies
run: |
echo "install ZAF"
cd ${{github.workspace}}/../
git clone --depth 1 https://github.com/zzxx-husky/inst_scripts
./inst_scripts/install_coll.sh --deps-only
cd ${{github.workspace}}
env:
CC: gcc
CXX: g++
- name: Compile with GCC
run: |
source ${{github.workspace}}/../inst_scripts/instrc.sh
echo ${ZMQ_ROOT}
echo ${GTEST_ROOT}
echo ${GLOG_ROOT}
echo ${PHMAP_ROOT}
echo ${ZAF_ROOT}
cmake -S . -B ${{github.workspace}}/release -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
cmake --build ${{github.workspace}}/release -j4
cd ${{github.workspace}}/release
echo "Run Tests"
timeout 10 ./tests/Tests
echo "Run HelloWorld"
timeout 10 ./examples/HelloWorld
echo "Run Calendar"
timeout 10 ./examples/Calendar
echo "Run FirstNMax"
timeout 10 ./examples/FirstNMax
echo "Run TopkFreqWords"
timeout 10 ./examples/TopkFreqWords
echo "RUn SortUnique"
timeout 10 ./examples/SortUnique
echo "ParallelSort"
timeout 20 ./benchmarks/ParallelSort
env:
CC: gcc
CXX: g++
- name: Compile with Clang
run: |
source ${{github.workspace}}/../inst_scripts/instrc.sh
cmake -S . -B ${{github.workspace}}/release_clang -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
cmake --build ${{github.workspace}}/release_clang -j4
cd ${{github.workspace}}/release_clang
echo "Run Tests"
timeout 10 ./tests/Tests
echo "Run HelloWorld"
timeout 10 ./examples/HelloWorld
echo "Run Calendar"
timeout 10 ./examples/Calendar
echo "Run FirstNMax"
timeout 10 ./examples/FirstNMax
echo "Run TopkFreqWords"
timeout 10 ./examples/TopkFreqWords
echo "RUn SortUnique"
timeout 10 ./examples/SortUnique
echo "ParallelSort"
timeout 20 ./benchmarks/ParallelSort
env:
CC: clang
CXX: clang++