nvf/.github/workflows/check-docs.yml

50 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2023-04-15 08:36:15 +00:00
name: "Validate flake & check documentation"
2023-04-15 08:34:34 +00:00
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
paths:
- docs/**
jobs:
2023-04-15 08:36:15 +00:00
flake-docs-check:
name: Validate Flake Documentation
2023-04-15 08:34:34 +00:00
runs-on: ubuntu-latest
strategy:
matrix:
package:
- docs
- docs-html
- docs-manpages
- docs-json
steps:
2023-04-15 08:38:51 +00:00
- uses: easimon/maximize-build-space@v6
with:
overprovision-lvm: true
remove-android: true
remove-dotnet: true
remove-haskell: true
- uses: cachix/install-nix-action@v20
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
auto-optimise-store = true
experimental-features = nix-command flakes
nix_path: nixpkgs=channel:nixos-unstable
2023-04-15 08:34:34 +00:00
- uses: actions/checkout@v3
- name: Set default git branch (to reduce log spam)
run: git config --global init.defaultBranch main
- name: Validate Flakes
run: nix flake check
- name: Build neovim-flake with default settings
run: nix build .#${{ matrix.package }} --print-build-logs
2023-05-03 10:32:45 +00:00
- name: Upload doc artifacts
uses: actions/upload-artifact@v3
with:
name: doc
path: result/share/doc/neovim-flake/
2023-04-15 08:34:34 +00:00