mirror of
https://github.com/divnix/digga.git
synced 2024-12-23 08:02:21 +03:00
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
name: "Check & Cachix"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- staging
|
|
pull_request:
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest]
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: cachix/install-nix-action@v17
|
|
with:
|
|
extra_nix_config: |
|
|
access-tokens = github.com=${{ github.token }}
|
|
system-features = nixos-test benchmark big-parallel kvm recursive-nix
|
|
substituters = https://nrdxp.cachix.org https://nix-community.cachix.org https://cache.nixos.org
|
|
trusted-public-keys = nrdxp.cachix.org-1:Fc5PSqY2Jm1TrWfm88l6cvGWwz3s93c6IOifQWnhNW4= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
|
|
|
|
- uses: cachix/cachix-action@v10
|
|
with:
|
|
name: nrdxp
|
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
# Quick eval
|
|
- run: nix develop --command evalnix
|
|
|
|
# Check the digga library
|
|
- run: nix flake check --show-trace
|
|
|
|
# Check /examples/*
|
|
- run: nix develop --command -- check-devos --show-trace
|
|
- run: nix develop --command -- check-groupByConfig --show-trace
|
|
- run: nix develop --command -- check-hmOnly --show-trace
|