-
Notifications
You must be signed in to change notification settings - Fork 19
63 lines (61 loc) · 1.86 KB
/
ci.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
62
63
name: ci
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y curl git gcc g++ clang make cmake autoconf automake libtool libwebkit2gtk-4.0-dev libgtksourceview-3.0-dev libappindicator3-dev python3 python3-pip
- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v1
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-stable
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v1
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-stable
- uses: jiro4989/[email protected]
with:
nim-version: '1.2.12'
- name: Install dependencies
run: nimble install --depsOnly -Y
- name: Run tests
run: nimble ci
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y curl git gcc g++ clang make cmake autoconf automake libtool libwebkit2gtk-4.0-dev libgtksourceview-3.0-dev libappindicator3-dev
- name: Cache choosenim
id: cache-choosenim
uses: actions/cache@v1
with:
path: ~/.choosenim
key: ${{ runner.os }}-choosenim-stable
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v1
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-stable
- uses: jiro4989/[email protected]
with:
nim-version: '1.2.12'
- name: Build Meros
run: nimble build -Y
- uses: actions/upload-artifact@v1
with:
name: meros-linux
path: build/Meros