emacs-flake/.github/workflows/cachix.yml

26 lines
565 B
YAML
Raw Normal View History

2024-07-20 01:32:25 +00:00
name: Build and Cache with Cachix
2024-08-05 14:24:12 +00:00
on: [push]
2024-07-20 01:32:25 +00:00
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Nix
uses: cachix/install-nix-action@v27
- name: Authenticate with Cachix
uses: cachix/cachix-action@v15
with:
name: larstvei
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Build and Push with Cachix
run: |
2024-07-20 16:02:06 +00:00
nix develop
2024-07-20 01:32:25 +00:00
set -e
2024-07-20 16:02:06 +00:00
nix build --json | jq -r '.[].outputs | to_entries[].value' | cachix push larstvei