mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-27 14:23:45 -05:00
Add Home-Manager checks to GH action
This commit is contained in:
30
.github/workflows/check-build.yml
vendored
30
.github/workflows/check-build.yml
vendored
@@ -41,6 +41,36 @@ jobs:
|
|||||||
if: ${{ !steps.cache-nix-store.outputs.cache-hit }}
|
if: ${{ !steps.cache-nix-store.outputs.cache-hit }}
|
||||||
run: |
|
run: |
|
||||||
nix-store --export $(nix-store -qR /nix/store/*-doom-emacs) > nix-store.dump
|
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:
|
check-emacsGit:
|
||||||
name: Flake Check emacsGit (x86_64 only)
|
name: Flake Check emacsGit (x86_64 only)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Reference in New Issue
Block a user