fix: correct generate_feeds config and add caching to GitHub Actions

- Fix typo in config.toml: generate_feed -> generate_feeds
- Add Nix store caching to speed up CI builds
- Add flake inputs caching for faster dependency resolution
This commit is contained in:
Salar Rahmanian 2025-06-13 20:06:50 -07:00
parent a4f3aeee9f
commit 1fd2958cdf
2 changed files with 24 additions and 8 deletions

View file

@ -21,6 +21,22 @@ jobs:
extra_nix_config: |
experimental-features = nix-command flakes
- name: Setup Nix store cache
uses: actions/cache@v4
with:
path: /nix/store
key: ${{ runner.os }}-nix-store-${{ hashFiles('**/flake.lock') }}
restore-keys: |
${{ runner.os }}-nix-store-
- name: Cache flake inputs
uses: actions/cache@v4
with:
path: ~/.cache/nix
key: ${{ runner.os }}-nix-flake-${{ hashFiles('**/flake.lock') }}
restore-keys: |
${{ runner.os }}-nix-flake-
- name: Build site (pull request)
if: github.event_name == 'pull_request'
run: |

View file

@ -3,7 +3,7 @@ theme = "tabi"
title = "Salar Rahmanian"
description = "Software Engineer based in San Francisco Bay Area"
author = "Salar Rahmanian"
generate_feed = true
generate_feeds = true
compile_sass = true
minify_html = true
build_search_index = true