Skip to content

Commit 05d833d

Browse files
authored
Merge pull request rust-embedded#33 from rust-embedded/gha
Swap to GHA
2 parents c0b6d03 + 82f41fe commit 05d833d

File tree

6 files changed

+60
-97
lines changed

6 files changed

+60
-97
lines changed

.github/bors.toml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
block_labels = ["needs-decision"]
2+
delete_merged_branches = true
3+
required_approvals = 1
4+
status = ["build"]

.github/workflows/ci.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ staging, trying, master ]
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions-rs/toolchain@v1
14+
with:
15+
profile: default
16+
toolchain: stable
17+
- name: Install Python dependencies
18+
run: |
19+
pip3 install --user python-dateutil linkchecker
20+
- name: Put pip binary directory into path
21+
run: echo "~/.local/bin" >> $GITHUB_PATH
22+
- name: Create doc directory
23+
run: mkdir doc
24+
- name: Download static content
25+
env:
26+
url: https://github.com/rust-lang/rust/raw/1.29.0/src
27+
working-directory: doc
28+
run: |
29+
curl -LO $url/doc/rust.css
30+
curl -LO $url/librustdoc/html/static/FiraSans-Regular.woff
31+
curl -LO $url/librustdoc/html/static/FiraSans-Medium.woff
32+
curl -LO $url/librustdoc/html/static/FiraSans-LICENSE.txt
33+
curl -LO $url/librustdoc/html/static/Heuristica-Italic.woff
34+
curl -LO $url/librustdoc/html/static/Heuristica-LICENSE.txt
35+
curl -LO $url/librustdoc/html/static/SourceSerifPro-Regular.woff
36+
curl -LO $url/librustdoc/html/static/SourceSerifPro-Bold.woff
37+
curl -LO $url/librustdoc/html/static/SourceSerifPro-LICENSE.txt
38+
curl -LO $url/librustdoc/html/static/SourceCodePro-Regular.woff
39+
curl -LO $url/librustdoc/html/static/SourceCodePro-Semibold.woff
40+
curl -LO $url/librustdoc/html/static/SourceCodePro-LICENSE.txt
41+
curl -LO $url/librustdoc/html/static/LICENSE-MIT.txt
42+
curl -LO $url/librustdoc/html/static/LICENSE-APACHE.txt
43+
curl -LO $url/librustdoc/html/static/COPYRIGHT.txt
44+
- name: Build webpage
45+
run: |
46+
rustdoc --markdown-css rust.css --markdown-no-toc index.md
47+
rustdoc --markdown-css rust.css faq.md
48+
- name: Check links
49+
run: linkchecker doc
50+
- name: Deploy webpage
51+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
52+
uses: peaceiris/actions-gh-pages@v3
53+
with:
54+
github_token: ${{ secrets.GITHUB_TOKEN }}
55+
publish_dir: doc
56+
force_orphan: true

.travis.yml

-20
This file was deleted.

ci/after-success.sh

-17
This file was deleted.

ci/install.sh

-20
This file was deleted.

ci/script.sh

-40
This file was deleted.

0 commit comments

Comments
 (0)