Skip to content

Commit bf820ca

Browse files
authored
Switch CI to GitHub Actions entirely (#365)
1 parent 7b8b3af commit bf820ca

File tree

4 files changed

+35
-48
lines changed

4 files changed

+35
-48
lines changed

.github/workflows/deploy.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- run: cargo install mdbook --version 0.4.6
13+
- run: cd mdbook && mdbook build
14+
- uses: JamesIves/[email protected]
15+
with:
16+
branch: gh-pages
17+
folder: mdbook

.github/workflows/rust.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-20.04
8+
steps:
9+
- uses: actions/checkout@v2
10+
- run: rustup update 1.50.0 --no-self-update && rustup default 1.50.0
11+
- run: cargo build
12+
- name: test mdBook
13+
# rustdoc doesn't build dependencies, so it needs to run after `cargo build`,
14+
# but its dependency search gets confused if there are multiple copies of any
15+
# dependency in target/debug/deps, so it needs to run before `cargo test` et al.
16+
# clutter target/debug/deps with multiple copies of things.
17+
run: for file in $(find mdbook -name '*.md'); do rustdoc --test $file -L ./target/debug/deps; done
18+
- run: cargo test

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)