aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2022-05-29 19:11:26 +0200
committerAndre Weissflog <floooh@gmail.com>2022-05-29 19:11:26 +0200
commit64ba85f22a93d2070dcf80ff7e7fde629d0bf16a (patch)
tree6512d453fef53a1725070680935da0c822108620 /.github/workflows
parentd44590805e5ae673fea572ee712e2992d5eb84ad (diff)
GH Actions: add Nim test matrix
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/gen_bindings.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/gen_bindings.yml b/.github/workflows/gen_bindings.yml
index b75dcf2c..f67a28f1 100644
--- a/.github/workflows/gen_bindings.yml
+++ b/.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