-
Notifications
You must be signed in to change notification settings - Fork 22
68 lines (52 loc) · 1.28 KB
/
build.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
name: GitHub Actions
on: [push, pull_request]
env:
BUILD_SITE: "GitHub Actions"
jobs:
linux:
name: Linux
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
compiler: [ gcc, clang ]
target: [ sse4.2, avx2 ]
env:
CC: ${{ matrix.compiler }}
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: Install dependencies
run: |
set -e
sudo apt-get update -y
sudo apt-get install -y cmake pkg-config libgd-dev ${{matrix.compiler}}
- name: CTest Build
run: env CC=${CC} CXX=${CC/g*/g++} ctest -VV -S cmake/TestVecCore.cmake,${{matrix.target}}
macos:
name: MacOS
runs-on: macos-latest
strategy:
fail-fast: true
matrix:
target: [ sse2, sse4.2 ]
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: CTest Build
run: ctest -VV -S cmake/TestVecCore.cmake,${{matrix.target}}
windows:
name: Windows
runs-on: windows-latest
strategy:
fail-fast: true
matrix:
target: [ sse2, avx2 ]
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- name: CTest Build
run: ctest -VV -S cmake/TestVecCore.cmake,${{matrix.target}}