forked from konovod/monocypher.cr
-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (55 loc) · 1.58 KB
/
linux-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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Linux CI
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- main
schedule:
- cron: "0 6 * * 1"
jobs:
specs:
name: Specs
runs-on: ubuntu-latest
steps:
- name: Install Crystal
uses: oprypin/install-crystal@v1
with:
crystal: 1.0.0
- name: Checkout source code
uses: actions/checkout@v2
- name: Install shards
run: shards install --ignore-crystal-version
- name: Compile Monocypher
run: mkdir ./.build; cc ./ext/monocypher.c -c -o ./.build/monocypher.o -O3 -march=native -std=gnu99; cc ./ext/monocypher-ed25519.c -c -o ./.build/monocypher-ed25519.o -O3 -march=native -std=gnu99; ar rcs ./.build/libmonocypher.a ./.build/monocypher.o ./.build/monocypher-ed25519.o
- name: Run specs
run: crystal spec --error-on-warnings --error-trace
check-format:
name: Check format
runs-on: ubuntu-latest
steps:
- name: Install Crystal
uses: oprypin/install-crystal@v1
with:
crystal: 1.0.0
- name: Checkout source code
uses: actions/checkout@v2
- name: Check sources format
run: crystal tool format --check
ameba:
name: Ameba linter
runs-on: ubuntu-latest
steps:
- name: Install Crystal
uses: oprypin/install-crystal@v1
with:
crystal: 1.0.0
- name: Checkout source code
uses: actions/checkout@v2
- name: Install shards
run: shards install --ignore-crystal-version
- name: Run ameba
run: bin/ameba