-
Notifications
You must be signed in to change notification settings - Fork 100
99 lines (84 loc) · 2.47 KB
/
test_x86.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
name: Test
on: [push, pull_request]
jobs:
test-llvm:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
llvm_version: ['11', '13.0.0', '15']
tool: ['cmake', 'bazel']
arch: [westmere, haswell]
exclude:
- tool: 'cmake'
arch: westmere
env:
CC: clang
CXX: clang++
steps:
- uses: actions/checkout@v3
- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: ${{ matrix.llvm_version }}
- name: Setup bazel
if: matrix.tool == 'bazel'
uses: jwlawson/actions-setup-bazel@v1
with:
bazel-version: "latest"
- name: Setup cmake
if: matrix.tool == 'cmake'
uses: jwlawson/actions-setup-cmake@v1
with:
cmake-version: "latest"
- name: Run ${{ matrix.arch }} Test Use Bazel
if: matrix.tool == 'bazel'
run : |
bash ./scripts/unittest.sh -c --arch=${{ matrix.arch }}
- name: Run Test Use CMake
if: matrix.tool == 'cmake'
run: |
bash ./scripts/run_cmake.sh
test-gcc:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
gcc_version: ['9', '12']
tool: ['cmake', 'bazel']
arch: [westmere, haswell]
dispatch: [static, dynamic]
exclude:
- tool: 'bazel'
arch: haswell
dispatch: dynamic
- tool: 'cmake'
dispatch: dynamic
- tool: 'cmake'
arch: westmere
env:
CC: gcc-${{ matrix.gcc_version }}
CXX: g++-${{ matrix.gcc_version}}
steps:
- uses: actions/checkout@v3
- name: Install GCC
run: |
sudo apt-get install -y gcc-${{ matrix.gcc_version }} g++-${{ matrix.gcc_version }}
- name: Setup bazel
if: matrix.tool == 'bazel'
uses: jwlawson/actions-setup-bazel@v1
with:
bazel-version: "latest"
- name: Setup cmake
if: matrix.tool == 'cmake'
uses: jwlawson/actions-setup-cmake@v1
with:
cmake-version: "latest"
- name: Run ${{ matrix.arch }} ${{ matrix.dispatch }} Test Use Bazel
if: matrix.tool == 'bazel'
run : |
bash ./scripts/unittest.sh -g --arch=${{ matrix.arch }} --dispatch=${{ matrix.dispatch }}
- name: Run Test Use CMake
if: matrix.tool == 'cmake'
run: |
bash ./scripts/run_cmake.sh