-
Notifications
You must be signed in to change notification settings - Fork 15
69 lines (55 loc) · 1.64 KB
/
build-test.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
name: Build and Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build_test:
name: Build and Test
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-ci')"
timeout-minutes: 30
steps:
- name: Checkout Koopa
uses: actions/checkout@v2
- name: Build
run: cargo check && cargo check --features no-front-logger
- name: Clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Test
run: cargo test --all-features
build_examples:
name: Build Examples
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-ci')"
timeout-minutes: 30
strategy:
matrix:
example-name: ['opt', 'brainfuck', 'interpreter']
steps:
- name: Checkout Koopa
uses: actions/checkout@v2
- name: Build
working-directory: examples/${{matrix.example-name}}
run: cargo check
- name: Clippy
working-directory: examples/${{matrix.example-name}}
run: cargo clippy --all-targets --all-features -- -D warnings
build_libkoopa:
name: Build and Test Koopa C Library
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-ci')"
timeout-minutes: 30
steps:
- name: Checkout Koopa
uses: actions/checkout@v2
- name: Build
working-directory: crates/libkoopa
run: cargo check
- name: Clippy
working-directory: crates/libkoopa
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Test
working-directory: crates/libkoopa
run: cargo test --all-features