mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 15:39:49 +01:00
CI: cleanup
This commit is contained in:
parent
9873d2bc98
commit
e5df60172a
3 changed files with 25 additions and 9 deletions
9
.github/workflows/cachix.yml
vendored
9
.github/workflows/cachix.yml
vendored
|
@ -23,12 +23,17 @@ jobs:
|
||||||
- maximal
|
- maximal
|
||||||
steps:
|
steps:
|
||||||
- uses: easimon/maximize-build-space@v6
|
- uses: easimon/maximize-build-space@v6
|
||||||
|
name: Maximize build space
|
||||||
with:
|
with:
|
||||||
overprovision-lvm: true
|
overprovision-lvm: true
|
||||||
remove-android: true
|
remove-android: true
|
||||||
remove-dotnet: true
|
remove-dotnet: true
|
||||||
remove-haskell: true
|
remove-haskell: true
|
||||||
|
remove-codeql: true
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
name: Checkout
|
||||||
|
|
||||||
- uses: cachix/install-nix-action@v20
|
- uses: cachix/install-nix-action@v20
|
||||||
with:
|
with:
|
||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
|
@ -36,14 +41,18 @@ jobs:
|
||||||
auto-optimise-store = true
|
auto-optimise-store = true
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
|
||||||
- uses: cachix/cachix-action@v12
|
- uses: cachix/cachix-action@v12
|
||||||
with:
|
with:
|
||||||
authToken: ${{ secrets.CACHIX_TOKEN }}
|
authToken: ${{ secrets.CACHIX_TOKEN }}
|
||||||
extraPullNames: nix-community
|
extraPullNames: nix-community
|
||||||
name: neovim-flake
|
name: neovim-flake
|
||||||
|
|
||||||
- name: Set default git branch (to reduce log spam)
|
- name: Set default git branch (to reduce log spam)
|
||||||
run: git config --global init.defaultBranch main
|
run: git config --global init.defaultBranch main
|
||||||
|
|
||||||
- name: Validate Flakes
|
- name: Validate Flakes
|
||||||
run: nix flake check
|
run: nix flake check
|
||||||
|
|
||||||
- name: Build neovim-flake with default settings
|
- name: Build neovim-flake with default settings
|
||||||
run: nix build .#${{ matrix.package }} --print-build-logs
|
run: nix build .#${{ matrix.package }} --print-build-logs
|
||||||
|
|
18
.github/workflows/check-docs.yml
vendored
18
.github/workflows/check-docs.yml
vendored
|
@ -14,10 +14,10 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
package:
|
package:
|
||||||
- docs
|
- docs
|
||||||
- docs-html
|
- docs-html
|
||||||
- docs-manpages
|
- docs-manpages
|
||||||
- docs-json
|
- docs-json
|
||||||
steps:
|
steps:
|
||||||
- uses: easimon/maximize-build-space@v6
|
- uses: easimon/maximize-build-space@v6
|
||||||
with:
|
with:
|
||||||
|
@ -25,6 +25,7 @@ jobs:
|
||||||
remove-android: true
|
remove-android: true
|
||||||
remove-dotnet: true
|
remove-dotnet: true
|
||||||
remove-haskell: true
|
remove-haskell: true
|
||||||
|
|
||||||
- uses: cachix/install-nix-action@v20
|
- uses: cachix/install-nix-action@v20
|
||||||
with:
|
with:
|
||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
|
@ -34,16 +35,19 @@ jobs:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
name: Checkout
|
||||||
|
|
||||||
- name: Set default git branch (to reduce log spam)
|
- name: Set default git branch (to reduce log spam)
|
||||||
run: git config --global init.defaultBranch main
|
run: git config --global init.defaultBranch main
|
||||||
- name: Validate Flakes
|
|
||||||
|
- name: Validate Flake
|
||||||
run: nix flake check
|
run: nix flake check
|
||||||
|
|
||||||
- name: Build neovim-flake with default settings
|
- name: Build neovim-flake with default settings
|
||||||
run: nix build .#${{ matrix.package }} --print-build-logs
|
run: nix build .#${{ matrix.package }} --print-build-logs
|
||||||
|
|
||||||
- name: Upload doc artifacts
|
- name: Upload doc artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: doc
|
name: doc
|
||||||
path: result/share/doc/neovim-flake/
|
path: result/share/doc/neovim-flake/
|
||||||
|
|
||||||
|
|
||||||
|
|
3
.github/workflows/manual.yml
vendored
3
.github/workflows/manual.yml
vendored
|
@ -25,12 +25,15 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: cachix/install-nix-action@v18
|
uses: cachix/install-nix-action@v18
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
nix build '.#docs'
|
nix build '.#docs'
|
||||||
cp -r result/share/doc/neovim-flake public
|
cp -r result/share/doc/neovim-flake public
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue