Browse Source

GH Actions: add Nim test matrix

Andre Weissflog 3 years ago
parent
commit
64ba85f22a
1 changed files with 25 additions and 0 deletions
  1. 25 0
      .github/workflows/gen_bindings.yml

+ 25 - 0
.github/workflows/gen_bindings.yml

@@ -54,3 +54,28 @@ jobs:
             sudo apt-get install libglu1-mesa-dev mesa-common-dev xorg-dev libasound-dev
       - name: build
         run: zig build
+  test-nim:
+    needs: generate
+    strategy:
+      matrix:
+        os: [ubuntu-latest, macos-latest, windows-latest]
+    runs-on: ${{matrix.os}}
+    steps:
+      - uses: jiro4989/setup-nim-action@v1
+      - uses: actions/checkout@v2
+        with:
+          repository: floooh/sokol-nim
+      - uses: actions/download-artifact@v2
+        with:
+          name: nim-files
+          path: src/sokol
+      - name: prepare-linux
+        if: runner.os == 'Linux'
+        run: |
+            sudo apt-get update
+            sudo apt-get install libglu1-mesa-dev mesa-common-dev xorg-dev libasound-dev
+      - name: build
+        run: |
+          nimble install
+          nimble install glm
+          nim c examples/cube.nim