mirror of
https://github.com/larstvei/emacs-flake.git
synced 2024-11-26 08:08:31 +00:00
Create cachix.yml
This commit is contained in:
parent
67ee1a7934
commit
744d7d9863
30
.github/workflows/cachix.yml
vendored
Normal file
30
.github/workflows/cachix.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Build and Cache with Cachix
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
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: |
|
||||||
|
set -e
|
||||||
|
nix build | cachix push larstvei
|
Loading…
Reference in New Issue
Block a user