.github: disable action scheduling #259
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Check Build" | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- develop | |
jobs: | |
check-emacs: | |
name: Flake Check emacs (x86_64 only) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v18 | |
with: | |
extra_nix_config: | | |
extra-substituters = https://nix-community.cachix.org | |
extra-trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= | |
- name: Retrieve /nix/store archive | |
uses: actions/cache@v3 | |
id: cache-nix-store | |
with: | |
path: nix-store.dump | |
key: nix-store-${{ hashFiles('flake.lock') }} | |
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 emacs | |
run: | | |
nix build .#checks.x86_64-linux.init-example-el | |
- name: Export /nix/store contents | |
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 | |
- uses: cachix/install-nix-action@v18 | |
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.lock') }} | |
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 | |
- name: Export /nix/store contents | |
if: ${{ !steps.cache-nix-store.outputs.cache-hit }} | |
run: | | |
nix-store --export $(nix-store -qR /nix/store/*-doom-emacs) > nix-store.dump | |
check-emacsGit: | |
name: Flake Check emacsGit (x86_64 only) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v18 | |
with: | |
name: nix-community | |
- name: Retrieve /nix/store archive | |
uses: actions/cache@v3 | |
id: cache-nix-store-emacsGit | |
with: | |
path: nix-store.dump | |
key: nix-store-emacsGit-${{ hashFiles('flake.lock') }} | |
restore-keys: | | |
nix-store-emacsGit- | |
- name: Import /nix/store contents | |
if: ${{ steps.cache-nix-store-emacsGit.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 emacsGit | |
run: | | |
nix build .#checks.x86_64-linux.init-example-el-emacsGit | |
- name: Export /nix/store contents | |
if: ${{ !steps.cache-nix-store-emacsGit.outputs.cache-hit }} | |
run: | | |
nix-store --export $(nix-store -qR /nix/store/*-doom-emacs) > nix-store.dump | |
check-splitdir: | |
name: Flake Check splitdir (x86_64 only) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: cachix/install-nix-action@v18 | |
with: | |
extra_nix_config: | | |
extra-substituters = https://nix-community.cachix.org | |
extra-trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= | |
- name: Retrieve /nix/store archive | |
uses: actions/cache@v3 | |
id: cache-nix-store | |
with: | |
path: nix-store.dump | |
key: nix-store-${{ hashFiles('flake.lock') }} | |
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 emacs | |
run: | | |
nix build .#checks.x86_64-linux.init-example-el-splitdir | |
- name: Export /nix/store contents | |
if: ${{ !steps.cache-nix-store.outputs.cache-hit }} | |
run: | | |
nix-store --export $(nix-store -qR /nix/store/*-doom-emacs) > nix-store.dump |