-
Notifications
You must be signed in to change notification settings - Fork 32
61 lines (57 loc) · 1.45 KB
/
test.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
name: test
# yamllint disable-line rule:truthy
on:
- push
- pull_request
jobs:
before:
runs-on: ubuntu-latest
if: "! contains(github.event.head_commit.message, '[skip ci]')"
steps:
- run: echo "commit message doesn't contain '[skip ci]'"
test:
needs: before
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
nim-version:
- '1.4.8'
- '1.6.16'
- '2.0.0'
- 'devel'
steps:
- uses: actions/checkout@v4
- uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim-version }}
- run: nimble install -y
- run: nimble test
- run: nimble checkExamples
i386:
needs: before
runs-on: ubuntu-latest
container:
image: i386/ubuntu
strategy:
fail-fast: false
matrix:
nim-version:
- '1.4.8'
- '1.6.16'
- '2.0.0'
steps:
- uses: actions/checkout@v1
- name: Setup
run: |
apt-get update -y
apt-get install -y curl gcc g++ git xz-utils
git config --global --add safe.directory /__w/bigints/bigints
- name: Install Nim
run: |
curl -sSf https://nim-lang.org/download/nim-${{ matrix.nim-version }}-linux_x32.tar.xz | tar -xJ
realpath nim-${{ matrix.nim-version }}/bin >> $GITHUB_PATH
- run: nimble install -y
- run: nimble test
- run: nimble checkExamples