Add Home-Manager checks to GH action

This commit is contained in:
Thiago Kenji Okada
2022-07-08 19:50:45 +01:00
parent 1713df2a43
commit bcf03a7746

View File

@@ -41,6 +41,36 @@ jobs:
if: ${{ !steps.cache-nix-store.outputs.cache-hit }}
run: |
nix-store --export $(nix-store -qR /nix/store/*-doom-emacs) > nix-store.dump
check-home-manager:
name: Home-Manager module (x86_64 only)
needs: check-emacs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Nix Flakes doesn't work on shallow clones
fetch-depth: 0
- uses: cachix/install-nix-action@v17
with:
name: nix-community
- name: Retrieve /nix/store archive
uses: actions/cache@v3
id: cache-nix-store
with:
path: nix-store.dump
key: nix-store-${{ hashFiles('flake.*') }}
restore-keys: |
nix-store-
- name: Import /nix/store contents
if: ${{ steps.cache-nix-store.outputs.cache-hit }}
run: |
if [[ -f nix-store.dump ]]; then
nix-store --import < nix-store.dump || true
rm nix-store.dump
fi
- name: Run checks in Home-Manager module
run: |
nix build .#checks.x86_64-linux.home-manager-module
check-emacsGit:
name: Flake Check emacsGit (x86_64 only)
runs-on: ubuntu-latest