edlang/.github/workflows/docs.yml

36 lines
1 KiB
YAML
Raw Normal View History

2024-02-13 06:34:25 +00:00
name: Deploy Docs to GitHub Pages
on:
push:
branches:
2024-02-13 06:34:55 +00:00
- master
2024-02-13 06:34:25 +00:00
permissions:
contents: write
jobs:
publish-docs:
name: GitHub Pages
runs-on: ubuntu-latest
steps:
2024-04-09 11:01:47 +00:00
- uses: actions/checkout@v4
2024-02-13 06:34:25 +00:00
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: add llvm deb repository
2024-04-09 11:01:47 +00:00
uses: myci-actions/add-deb-repo@11
2024-02-13 06:34:25 +00:00
with:
2024-04-09 11:01:47 +00:00
repo: deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main
2024-02-13 06:34:25 +00:00
repo-name: llvm-repo
keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key
- name: Install LLVM
2024-04-09 11:01:47 +00:00
run: sudo apt-get install llvm-18 llvm-18-dev llvm-18-runtime clang-18 clang-tools-18 lld-18 libpolly-18-dev libmlir-18-dev mlir-18-tools
2024-02-13 06:34:25 +00:00
- name: Build docs
2024-02-13 06:36:27 +00:00
run: cargo doc
2024-02-13 06:34:25 +00:00
- name: Deploy Documentation
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./target/doc/
keep_files: false