neovim-flake/.github/workflows/check-docs.yml

54 lines
1.4 KiB
YAML
Raw Normal View History

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