-
Notifications
You must be signed in to change notification settings - Fork 9
57 lines (49 loc) · 1.3 KB
/
test.yml
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
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@v1
with:
nim-version: ${{ matrix.nim }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Init submodules
run: git submodule update --init
- name: Compile examples
run: |
nim c examples/minimal.nim
nim c examples/hello_world.nim
nim c examples/hello_world_c.nim
nim c examples/call_nim_from_js.nim
nim c examples/call_js_from_nim.nim
nim c examples/public_network_access.nim
nim c examples/serve_folder/serve_folder.nim
nim c examples/qxexample/qxexample.nim
# nim c examples/text_editor/src/text_editor.nim