-
Notifications
You must be signed in to change notification settings - Fork 25
45 lines (42 loc) · 1.08 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
name: test
on:
- push
- pull_request
jobs:
before:
runs-on: ubuntu-latest
outputs:
skip-ci: ${{ contains(github.event.head_commit.message, '[skip ci]') }}
steps:
- name: Dummy step
run: /bin/true
test:
runs-on: ${{ matrix.os }}
needs: before
if: ${{ !needs.before.outputs.skip_ci }}
strategy:
matrix:
os:
- ubuntu-latest
# - macOS-latest # no devel-compiler of mac
# - windows-latest # FIXME
nim_version:
- stable
- devel
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache choosenim
uses: actions/cache@v3
with:
path: ~/.choosenim
key: ${{ matrix.os }}-choosenim-${{ matrix.nim_version }}-${{ github.run_id }}
restore-keys: |
${{ matrix.os }}-choosenim-${{ matrix.nim_version }}-
- uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim_version }}
- name: Test
run: make V=1 -j $(nproc)
env:
DIFF: diff -u