-
Notifications
You must be signed in to change notification settings - Fork 11
53 lines (47 loc) · 1.24 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
name: CI
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
inputs:
branch:
default: '"stable"'
concurrency: # Cancel stale PR builds (but not push builds)
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
target:
- os: linux
cpu: amd64
TEST_LANG: c
- os: linux
cpu: amd64
TEST_LANG: cpp
branch: ${{ fromJSON(format('[{0}]', inputs.branch || '"1.2.0","1.2.x","1.4.0","1.4.x","1.6.0","1.6.x","2.0.0","2.0.x","stable","devel"')) }}
include:
- target:
os: linux
shell: bash
defaults:
run:
shell: ${{ matrix.shell }}
name: 'nim-${{matrix.branch}}'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.branch }}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests
run: |
nim --version
env TEST_LANG="c" nimble test
env TEST_LANG="cpp" nimble test