-
Notifications
You must be signed in to change notification settings - Fork 55
100 lines (87 loc) · 2.54 KB
/
base_tests.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Base Tests
on:
push:
branches:
- master
pull_request:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
delete_cache:
name: Delete github action's branch cache
runs-on: ubuntu-latest
steps:
- uses: snnaplab/delete-branch-cache-action@v1
test:
needs: delete_cache
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
platform:
- os: linux
cpu: amd64
- os: linux
cpu: i386
- os: macos
cpu: amd64
- os: windows
cpu: amd64
nim:
- branch: version-1-6
memory_management: refc
- branch: version-2-0
memory_management: refc
include:
- platform:
os: linux
builder: ubuntu-22.04
shell: bash
- platform:
os: macos
builder: macos-13
shell: bash
- platform:
os: windows
builder: windows-2022
shell: msys2 {0}
defaults:
run:
shell: ${{ matrix.shell }}
name: '${{ matrix.platform.os }}-${{ matrix.platform.cpu }} (Nim ${{ matrix.nim.branch }})'
# name: '${{ matrix.platform.os }}-${{ matrix.platform.cpu }}-${{ matrix.builder }}-${{ matrix.shell }} (Nim ${{ matrix.nim.branch }}-${{ matrix.nim.memory_management }})'
runs-on: ${{ matrix.builder }}
continue-on-error: ${{ matrix.nim.branch == 'version-2-0' || matrix.nim.branch == 'devel' }}
steps:
- name: Matrix info
run: ""
# - name: Checkout
# uses: actions/checkout@v4
# with:
# submodules: true
# - name: Setup Nim
# uses: "./.github/actions/install_nim"
# with:
# os: ${{ matrix.platform.os }}
# shell: ${{ matrix.platform.shell }}
# nim: ${{ matrix.nim.branch }}
# cpu: ${{ matrix.platform.cpu }}
# - name: Setup Go
# uses: actions/setup-go@v5
# with:
# go-version: '~1.15.5'
# cache: false
# - name: Install p2pd
# run: |
# V=1 bash scripts/build_p2pd.sh p2pdCache 124530a3
# - name: Install deps
# run: |
# nimble install -y --depsOnly
# - name: Run tests
# run: |
# nim --version
# nimble --version
# NIMFLAGS="${NIMFLAGS} --mm:${{ matrix.nim.memory_management }}"
# nimble test