-
Notifications
You must be signed in to change notification settings - Fork 157
57 lines (49 loc) · 1.73 KB
/
bvt-gcc.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
on:
workflow_call:
inputs:
branch:
type: string
required: false
jobs:
bvt-gcc:
runs-on: ubuntu-24.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ inputs.branch }}
- name: install gcc
run: |
sudo apt install -y gcc-11 g++-11 gcc-12 g++-12 gcc-13 g++-13 gcc-14 g++-14
- name: check compiler versions
run: |
g++-11 --version
g++-12 --version
g++-13 --version
g++-14 --version
- name: build and run test with gcc 11
run: |
cmake -B build-gcc-11 -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_BUILD_TYPE=Release
cmake --build build-gcc-11 -j
ctest --test-dir build-gcc-11 -j
- name: build and run test with gcc 12
run: |
cmake -B build-gcc-12 -DCMAKE_C_COMPILER=gcc-12 -DCMAKE_CXX_COMPILER=g++-12 -DCMAKE_BUILD_TYPE=Release
cmake --build build-gcc-12 -j
ctest --test-dir build-gcc-12 -j
- name: build and run test with gcc 13
run: |
cmake -B build-gcc-13 -DCMAKE_C_COMPILER=gcc-13 -DCMAKE_CXX_COMPILER=g++-13 -DCMAKE_BUILD_TYPE=Release
cmake --build build-gcc-13 -j
ctest --test-dir build-gcc-13 -j
- name: build and run test with gcc 14
run: |
cmake -B build-gcc-14 -DCMAKE_C_COMPILER=gcc-14 -DCMAKE_CXX_COMPILER=g++-14 -DCMAKE_BUILD_TYPE=Release
cmake --build build-gcc-14 -j
ctest --test-dir build-gcc-14 -j
- name: run benchmarks
run: |
./build-gcc-11/benchmarks/msft_proxy_benchmarks
./build-gcc-12/benchmarks/msft_proxy_benchmarks
./build-gcc-13/benchmarks/msft_proxy_benchmarks
./build-gcc-14/benchmarks/msft_proxy_benchmarks