-
-
Notifications
You must be signed in to change notification settings - Fork 30
127 lines (104 loc) · 4.07 KB
/
ci.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
name: CI
on:
push:
branches:
- dev
pull_request:
branches:
- dev
jobs:
CI:
name: CMake LGTM
runs-on: ubuntu-latest
steps:
- name: LGTM
run: echo "LGTM" #TODO, uncomment
# jobs:
# UbuntuMacOS:
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, macOS-latest]
# # build_type: [Debug, RelWithDebInfo, MinSizeRel, Release]
# build_type: [Release]
# compiler: [default, clang, gcc]
# exclude:
# - {os: "macOS-latest", compiler: "gcc"} # not needed
# - {os: "macOS-latest", compiler: "clang"} # handled by `default`
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v1
# - name: Create the Build Folder
# run: |
# mkdir ${{github.workspace}}/build
# - name: Set up Compilers on Ubuntu
# if: matrix.os == 'ubuntu-latest'
# run: |
# sudo apt-get install -y gcc-11 g++-10 clang-10
# - name: Default Platform Compiler
# shell: bash
# if: matrix.compiler == 'default'
# run: |
# cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
# - name: GCC (Ubuntu)
# shell: bash
# if: (matrix.compiler == 'gcc') && (matrix.os == 'ubuntu-latest')
# run: |
# cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_C_COMPILER=gcc-11 -DCMAKE_CXX_COMPILER=g++-10
# - name: Clang (Ubuntu)
# shell: bash
# if: (matrix.compiler == 'clang') && (matrix.os == 'ubuntu-latest')
# run: |
# cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_C_COMPILER=clang-10 -DCMAKE_CXX_COMPILER=clang++-10
# - name: Build
# shell: bash
# run: |
# cmake --build build/ --config ${{ matrix.build_type }}
# - name: Test
# shell: bash
# run: |
# cd build/test && ./TauInternalTests
# Windows:
# runs-on: windows-latest
# strategy:
# fail-fast: false
# matrix:
# build_type: [Release]
# compiler: [default, gcc, clang, clangcl]
# version: [10, 11]
# steps:
# - uses: actions/checkout@v2
# - name: Set up Clang on windows
# if: matrix.compiler == 'clang'
# run: |
# curl -fsSL -o LLVM${{ matrix.version }}.exe https://github.com/llvm/llvm-project/releases/download/llvmorg-${{ matrix.version }}.0.0/LLVM-${{ matrix.version }}.0.0-win64.exe ; 7z x LLVM${{ matrix.version }}.exe -y -o"C:/Program Files/LLVM"
# - name: CMake (Default Compiler)
# shell: bash
# if: matrix.compiler == 'default'
# run: |
# cmake -S . -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_SYSTEM_VERSION="10.0.18362.0"
# - name: CMake (GCC)
# shell: bash
# if: matrix.compiler == 'gcc'
# run: |
# cmake -S . -B build -G"MinGW Makefiles" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
# - name: CMake (Clang)
# shell: bash
# if: matrix.compiler == 'clang'
# run: |
# cmake -S . -B build -G"MinGW Makefiles" -DCMAKE_C_COMPILER="C:/Program Files/LLVM/bin/clang.exe" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DTAU_BUILDINTERNALTESTS=On
# - name: CMake (Clang Cl)
# shell: bash
# if: matrix.compiler == 'clangcl'
# run: |
# cmake -S . -B build -G "Visual Studio 16 2019" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_C_COMPILER=clang-cl -DCMAKE_SYSTEM_VERSION="10.0.18362.0"
# - name: Build
# shell: bash
# run: |
# cmake --build build/ --config ${{ matrix.build_type }}
# - name: Test (MSVC)
# if: (matrix.compiler == 'default') || (matrix.compiler == 'clangcl')
# run: cd build/test/${{ matrix.build_type }} ; dir; ./TauInternalTests
# - name: Test (Clang/Ubuntu)
# if: (matrix.compiler == 'gcc') || (matrix.compiler == 'clang')
# run: cd build/test/ ; dir; ./TauInternalTests