mirror of
https://github.com/transistorfet/moa.git
synced 2024-06-07 03:29:27 +00:00
90214ab44f
Since it has the synchronize condition, it will update after each commit, whether in draft or not, so I think this should be alright
33 lines
710 B
YAML
33 lines
710 B
YAML
name: rustdoc
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
rustdocs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: true
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get install -y alsa-base libasound2-dev libxkbcommon-dev
|
|
|
|
- name: Select rust version
|
|
run: |
|
|
rm Cargo.lock
|
|
rustup toolchain install nightly --profile minimal --no-self-update
|
|
rustup default nightly
|
|
|
|
- name: Build rustdoc
|
|
run: |
|
|
RUSTDOCFLAGS="--deny=warnings --cfg=docsrs" cargo doc --all-features
|