-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (55 loc) · 1.99 KB
/
ci.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
on:
push:
branches: [rev10]
schedule:
- cron: "0 21 * * *"
jobs:
test_linux:
runs-on: ubuntu-latest
steps:
- name: Download source
uses: actions/checkout@v3
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Build ffi-test
run: gcc -shared -o tests/res/ffi-test.so tests/res/ffi-test.c
- name: Install dependencies
run: shards install --without-development
- name: Build CLI, NKAS, NKI
run: shards build --without-development
- name: Run language tests
run: bin/novika -:abort-on-permission-request ffi disk tests/res/ffi-test.so tests
- name: Build tests via NKAS
run: bin/nkas -cb:b ffi disk tests/res/ffi-test.so tests tests/tests.nki
- name: Copy ffi-test shared object to tests directory
run: cp tests/res/ffi-test.so tests/ffi-test.so
- name: Run the tests image using NKI
run: bin/nki tests/tests.nki
- name: Run resolver tests
run: |
cd tests/_resolver
NORECUR=1 bash run.sh
test_windows:
runs-on: windows-latest
defaults:
run:
shell: bash
steps:
- name: Download source
uses: actions/checkout@v3
- name: Install Crystal
uses: crystal-lang/install-crystal@v1
- name: Build ffi-test
run: gcc -shared -o tests/res/ffi-test.dll tests/res/ffi-test.c
- name: Install dependencies
run: shards install --without-development
- name: Build CLI, NKAS, NKI
run: shards build --without-development
- name: Run language tests
run: bin/novika -:abort-on-permission-request ffi disk tests/res/ffi-test.dll tests
- name: Build tests via NKAS
run: bin/nkas -cb:b ffi disk tests/res/ffi-test.dll tests tests/tests.nki
- name: Copy ffi-test shared object to tests directory
run: cp tests/res/ffi-test.dll tests/ffi-test.dll
- name: Run the tests image using NKI
run: bin/nki tests/tests.nki