Skip to content

Commit 820f953

Browse files
committed
WIP experiment with github actions
1 parent 2b9bb43 commit 820f953

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
# schedule:
7+
# - cron: "00 01 * * *"
8+
9+
jobs:
10+
ci:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
matrix:
14+
os:
15+
- ubuntu-latest
16+
#- windows-latest
17+
#- macOS-latest
18+
rust:
19+
- stable
20+
#- beta
21+
#- nightly
22+
#- "1.32.0"
23+
steps:
24+
- name: checkout the source code
25+
uses: actions/checkout@v1
26+
with:
27+
fetch-depth: 2
28+
29+
# - name: install ZMQ with homebrew
30+
# run: brew udpdate && brew install zmq
31+
#
32+
# - name: install msys2
33+
# uses: eine/setup-msys2@v0
34+
# with:
35+
# update: true
36+
37+
- name: install ZMQ with apt
38+
run: sudo apt -y install libzmq3-dev libsodium-dev
39+
40+
- name: install Rust
41+
uses: actions-rs/toolchain/@v1
42+
with:
43+
profile: minimal
44+
toolchain: ${{ matrix.rust }}
45+
override: true
46+
components: clippy
47+
48+
- name: Build
49+
uses: actions-rs/cargo@v1
50+
with:
51+
command: build
52+
53+
- name: Run Tests
54+
uses: actions-rs/cargo@v1
55+
with:
56+
command: test
57+
58+
- name: Generate Docs
59+
uses: actions-rs/cargo@v1
60+
with:
61+
command: doc
62+
args: --all-features --no-deps

0 commit comments

Comments
 (0)