1
0
Fork 0
mirror of https://github.com/malob/prefmanager.git synced 2024-12-14 11:57:49 +00:00
prefmanager/.github/workflows/ci.yml
2022-04-26 12:43:14 -07:00

39 lines
831 B
YAML

name: "Build and Cache"
on:
pull_request:
push:
jobs:
build-and-cache:
runs-on: macos-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v17
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- name: Setup Cachix
uses: cachix/cachix-action@v10
with:
name: malo
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: Nix Flakes
run: |
nix -L build .
nix -L run . -- --help
nix -L develop .
- name: Nix Legacy
run: |
nix-build default.nix
nix-shell shell.nix
- name: Stack
run: |
stack build
stack purge
nix-shell shell.nix --run 'stack --nix build'