forked from egraphs-good/egg
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (40 loc) · 1.2 KB
/
build.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
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ dev, master ]
pull_request:
branches: [ dev, master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Setup Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install graphviz
run: sudo apt-get update && sudo apt-get install graphviz
- name: Install cargo deadlinks
run: which cargo-deadlinks || cargo install cargo-deadlinks
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
toolchain: stable
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
toolchain: stable