瀏覽代碼

gen_bindings.yml: first make sure that native builds and tests work

Andre Weissflog 3 年之前
父節點
當前提交
afc058e5e8
共有 1 個文件被更改,包括 38 次插入3 次删除
  1. 38 3
      .github/workflows/gen_bindings.yml

+ 38 - 3
.github/workflows/gen_bindings.yml

@@ -2,7 +2,42 @@ name: Language Bindings
 on: workflow_dispatch
 
 jobs:
-  generate:
+  test-windows:
+      runs-on: windows-latest
+      steps:
+      - uses: actions/checkout@v1
+      - name: test_win
+        run: |
+          cd tests
+          test_win.cmd
+        shell: cmd
+
+  test-mac:
+      runs-on: macos-latest
+      steps:
+      - uses: actions/checkout@v1
+      - uses: seanmiddleditch/gha-setup-ninja@master
+      - name: test_macos
+        run: |
+          cd tests
+          ./test_macos.sh
+
+  test-linux:
+      runs-on: ubuntu-latest
+      steps:
+      - uses: actions/checkout@v1
+      - uses: seanmiddleditch/gha-setup-ninja@master
+      - name: prepare
+        run: |
+          sudo apt-get update
+          sudo apt-get install libglu1-mesa-dev mesa-common-dev xorg-dev libasound-dev
+      - name: test_linux
+        run: |
+          cd tests
+          ./test_linux.sh
+
+  gen-bindings:
+    needs: [ test-windows, test-mac, test-linux ]
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
@@ -32,7 +67,7 @@ jobs:
           retention-days: 1
 
   test-zig:
-    needs: generate
+    needs: gen-bindings
     strategy:
       matrix:
         os: [ubuntu-latest, macos-latest, windows-latest]
@@ -57,7 +92,7 @@ jobs:
         run: zig build
 
   test-nim:
-    needs: generate
+    needs: gen-bindings
     strategy:
       matrix:
         os: [ubuntu-latest, macos-latest, windows-latest]