Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 33d2191

Browse files
authored
Merge pull request #253 from k-nasa/add_github_ci
Add github actions workflows
2 parents 247afb4 + 4bbc95b commit 33d2191

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
on: [push]
2+
3+
jobs:
4+
build_and_test:
5+
name: Build and test on ${{ matrix.os }}
6+
runs-on: ${{ matrix.os }}
7+
strategy:
8+
matrix:
9+
os: [ubuntu-latest, windows-latest, macOS-latest]
10+
11+
steps:
12+
- uses: actions/checkout@master
13+
14+
- name: Install nightly
15+
uses: actions-rs/toolchain@v1
16+
with:
17+
toolchain: nightly
18+
override: true
19+
20+
- name: check
21+
uses: actions-rs/cargo@v1
22+
with:
23+
command: check
24+
args: --all --benches --bins --examples --tests
25+
26+
- name: check unstable
27+
uses: actions-rs/cargo@v1
28+
with:
29+
command: check
30+
args: --features unstable --all --benches --bins --examples --tests
31+
32+
- name: tests
33+
uses: actions-rs/cargo@v1
34+
with:
35+
command: test
36+
args: --all --doc --features unstable
37+
38+
check_fmt_and_docs:
39+
name: Checking fmt and docs
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@master
43+
44+
- name: setup
45+
run: |
46+
rustup default nightly
47+
rustup component add rustfmt
48+
test -x $HOME/.cargo/bin/mdbook || ./ci/install-mdbook.sh
49+
rustc --version
50+
- name: mdbook
51+
run: |
52+
mdbook build docs
53+
- name: fmt
54+
run: cargo fmt --all -- --check
55+
56+
- name: Docs
57+
run: cargo doc --features docs,unstable

‎.github/workflows/clippy.yml‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on: push
2+
name: Clippy check
3+
jobs:
4+
clippy_check:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v1
8+
- id: component
9+
uses: actions-rs/components-nightly@v1
10+
with:
11+
component: clippy
12+
- uses: actions-rs/toolchain@v1
13+
with:
14+
toolchain: ${{ steps.component.outputs.toolchain }}
15+
override: true
16+
- run: rustup component add clippy
17+
- uses: actions-rs/clippy-check@v1
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /