ggerganov commited on
Commit
fdcd02e
·
1 Parent(s): 40b898f

ci : add cmake builds

Browse files
Files changed (1) hide show
  1. .github/workflows/build.yml +78 -1
.github/workflows/build.yml CHANGED
@@ -13,7 +13,7 @@ jobs:
13
  run: |
14
  sudo apt-get update
15
  sudo apt-get install build-essential
16
- sudo apt-get install libsdl2-dev;
17
 
18
  - name: Build
19
  run: |
@@ -36,3 +36,80 @@ jobs:
36
  run: |
37
  make
38
  make stream
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  run: |
14
  sudo apt-get update
15
  sudo apt-get install build-essential
16
+ sudo apt-get install libsdl2-dev
17
 
18
  - name: Build
19
  run: |
 
36
  run: |
37
  make
38
  make stream
39
+
40
+ ubuntu-latest-gcc:
41
+ runs-on: ubuntu-latest
42
+
43
+ strategy:
44
+ matrix:
45
+ build: [Debug, Release]
46
+
47
+ steps:
48
+ - name: Clone
49
+ uses: actions/checkout@v1
50
+
51
+ - name: Dependencies
52
+ run: |
53
+ sudo apt-get update
54
+ sudo apt-get install build-essential
55
+ sudo apt-get install cmake
56
+ sudo apt-get install libsdl2-dev
57
+
58
+ - name: Configure
59
+ run: cmake . -DWHISPER_SUPPORT_SDL2=ON -DCMAKE_BUILD_TYPE=${{ matrix.build }}
60
+
61
+ - name: Build
62
+ run: |
63
+ make
64
+ ctest --output-on-failure
65
+
66
+ ubuntu-latest-clang:
67
+ runs-on: ubuntu-latest
68
+
69
+ strategy:
70
+ matrix:
71
+ build: [Debug, Release]
72
+
73
+ steps:
74
+ - name: Clone
75
+ uses: actions/checkout@v1
76
+
77
+ - name: Dependencies
78
+ run: |
79
+ sudo apt-get update
80
+ sudo apt-get install build-essential
81
+ sudo apt-get install cmake
82
+ sudo apt-get install libsdl2-dev
83
+
84
+ - name: Configure
85
+ run: cmake . -DWHISPER_SUPPORT_SDL2=ON -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
86
+
87
+ - name: Build
88
+ run: |
89
+ make
90
+ ctest --output-on-failure
91
+
92
+ ubuntu-latest-gcc-sanitized:
93
+ runs-on: ubuntu-latest
94
+
95
+ strategy:
96
+ matrix:
97
+ sanitizer: [ADDRESS, THREAD, UNDEFINED]
98
+
99
+ steps:
100
+ - name: Clone
101
+ uses: actions/checkout@v1
102
+
103
+ - name: Dependencies
104
+ run: |
105
+ sudo apt-get update
106
+ sudo apt-get install build-essential
107
+ sudo apt-get install cmake
108
+
109
+ - name: Configure
110
+ run: cmake . -DCMAKE_BUILD_TYPE=Debug -DWHISPER_SANITIZE_${{ matrix.sanitizer }}=ON
111
+
112
+ - name: Build
113
+ run: |
114
+ make
115
+ ctest --output-on-failure