-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (35 loc) · 1.48 KB
/
testingOnPush_Windows.yaml
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
name: Windows Tests
on:
push:
paths:
- 'tests/**'
- 'src/**'
- '.github/workflows/testingOnPush_Windows.yaml'
workflow_dispatch:
jobs:
test:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nim
uses: jiro4989/setup-nim-action@v1
with:
nim-version: '2.0.2'
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install nimCSO (and dependencies)
run: nimble install -y
- name: Compile minCSO
run: nim c -d:release src/nimcso
- name: Runtime tests of benchmarks under release mode
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/benchmarksRuntime
- name: Runtime tests of benchmarks under danger mode
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/benchmarksRuntime
- name: Brute Force under release mode (has to work)
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/bruteForce
- name: Brute Force under danger mode (should work)
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/bruteForce
- name: Least Preventing / Most Common under release mode (has to work)
run: nim c -r -f -d:release -d:configPath=tests/config.yaml tests/leastPreventing
- name: Least Preventing / Most Common under danger mode (should work)
run: nim c -r -f -d:danger -d:configPath=tests/config.yaml tests/leastPreventing