-
-
Notifications
You must be signed in to change notification settings - Fork 5
61 lines (49 loc) · 1.63 KB
/
build.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
58
59
60
61
name: Build Nim 👑
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: harmon758/postgresql-action@v1
with:
postgresql version: '12'
postgresql db: 'postgres'
postgresql user: 'postgres'
postgresql password: 'postgres'
- uses: jiro4989/[email protected]
with:
nim-version: '1.4.0'
- name: Nimble Check package validity
run: |
export PATH=$HOME/.nimble/bin:$PATH
nimble check
- name: Install project
run: |
export PATH=$HOME/.nimble/bin:$PATH
nimble install
- name: Unittest C
run: |
export PATH=$HOME/.nimble/bin:$PATH
nim c --panics:on --gc:orc --experimental:strictFuncs tests/test.nim
- name: Unittest CPP
run: |
export PATH=$HOME/.nimble/bin:$PATH
nim cpp --panics:on --gc:orc --experimental:strictFuncs tests/test.nim
- name: Unittest C Release
run: |
export PATH=$HOME/.nimble/bin:$PATH
nim c -d:release --panics:on --gc:orc --experimental:strictFuncs tests/test.nim
- name: Unittest CPP Release
run: |
export PATH=$HOME/.nimble/bin:$PATH
nim cpp -d:release --panics:on --gc:orc --experimental:strictFuncs tests/test.nim
- name: Unittest JavaScript
run: |
export PATH=$HOME/.nimble/bin:$PATH
nim js -r --experimental:strictFuncs tests/test_js.nim
- name: Project X
run: |
export PATH=$HOME/.nimble/bin:$PATH
nim c -r -d:postgres --gc:orc --panics:on tests/test_multigata.nim