Skip to content

Swap to GHA #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/bors.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
block_labels = ["needs-decision"]
delete_merged_branches = true
required_approvals = 1
status = ["build"]
56 changes: 56 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: CI

on:
push:
branches: [ staging, trying, master ]
pull_request:

jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: default
toolchain: stable
- name: Install Python dependencies
run: |
pip3 install --user python-dateutil linkchecker
- name: Put pip binary directory into path
run: echo "~/.local/bin" >> $GITHUB_PATH
- name: Create doc directory
run: mkdir doc
- name: Download static content
env:
url: https://github.com/rust-lang/rust/raw/1.29.0/src
working-directory: doc
run: |
curl -LO $url/doc/rust.css
curl -LO $url/librustdoc/html/static/FiraSans-Regular.woff
curl -LO $url/librustdoc/html/static/FiraSans-Medium.woff
curl -LO $url/librustdoc/html/static/FiraSans-LICENSE.txt
curl -LO $url/librustdoc/html/static/Heuristica-Italic.woff
curl -LO $url/librustdoc/html/static/Heuristica-LICENSE.txt
curl -LO $url/librustdoc/html/static/SourceSerifPro-Regular.woff
curl -LO $url/librustdoc/html/static/SourceSerifPro-Bold.woff
curl -LO $url/librustdoc/html/static/SourceSerifPro-LICENSE.txt
curl -LO $url/librustdoc/html/static/SourceCodePro-Regular.woff
curl -LO $url/librustdoc/html/static/SourceCodePro-Semibold.woff
curl -LO $url/librustdoc/html/static/SourceCodePro-LICENSE.txt
curl -LO $url/librustdoc/html/static/LICENSE-MIT.txt
curl -LO $url/librustdoc/html/static/LICENSE-APACHE.txt
curl -LO $url/librustdoc/html/static/COPYRIGHT.txt
- name: Build webpage
run: |
rustdoc --markdown-css rust.css --markdown-no-toc index.md
rustdoc --markdown-css rust.css faq.md
- name: Check links
run: linkchecker doc
- name: Deploy webpage
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc
force_orphan: true
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

17 changes: 0 additions & 17 deletions ci/after-success.sh

This file was deleted.

20 changes: 0 additions & 20 deletions ci/install.sh

This file was deleted.

40 changes: 0 additions & 40 deletions ci/script.sh

This file was deleted.