]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
Add CI using Github Actions
authorGeorgi Gerganov <redacted>
Fri, 7 Oct 2022 15:32:18 +0000 (18:32 +0300)
committerGeorgi Gerganov <redacted>
Fri, 7 Oct 2022 15:34:27 +0000 (18:34 +0300)
.github/workflows/build.yml [new file with mode: 0644]

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644 (file)
index 0000000..0a91f8f
--- /dev/null
@@ -0,0 +1,38 @@
+name: CI
+on: [push]
+
+jobs:
+    ubuntu-latest:
+        runs-on: ubuntu-latest
+
+        steps:
+            - name: Clone
+              uses: actions/checkout@v1
+
+            - name: Dependencies
+              run: |
+                  sudo apt-get update
+                  sudo apt-get install build-essential
+                  sudo apt-get install libsdl2-dev;
+
+            - name: Build
+              run: |
+                make
+                make stream
+
+    macOS-latest:
+        runs-on: macOS-latest
+
+        steps:
+            - name: Clone
+              uses: actions/checkout@v1
+
+            - name: Dependencies
+              run: |
+                  brew update
+                  brew install sdl2
+
+            - name: Build
+              run: |
+                make
+                make stream