-
Notifications
You must be signed in to change notification settings - Fork 14
61 lines (53 loc) · 1.49 KB
/
test.yml
File metadata and controls
61 lines (53 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: test
run-name: Test
on:
push:
branches:
- "main"
paths:
- "webui.nim"
- "nimdoc.cfg"
- "webui.nimble"
- ".github/workflows/test.yml"
- "webui/**"
- "examples/**"
pull_request:
jobs:
tests:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macOS-latest
nim:
- 1.6.x
- stable
name: Nim ${{ matrix.nim }}, ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Nim
uses: jiro4989/setup-nim-action@v2
with:
nim-version: ${{ matrix.nim }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Init submodules
run: git submodule update --init
- name: Generate bindings
run: |
nimble install c2nim -y
nim scripts/generate_bindings.nims
- name: Compile examples
run: |
nim c -f examples/minimal.nim
nim c -f examples/hello_world.nim
nim c -f examples/hello_world_c.nim
nim c -f examples/call_nim_from_js.nim
nim c -f examples/call_js_from_nim.nim
nim c -f examples/public_network_access.nim
nim c -f examples/serve_folder/serve_folder.nim
nim c -f examples/qxexample/qxexample.nim
# nim c -f examples/text_editor/src/text_editor.nim # osfiles/dialog not available in macos