Merge pull request #219 from haskell-nix/dependabot/github_actions/ac… #1238
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "(Optional) Nix dev env, Linux, main" | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "45 03 * * *" | |
env: | |
cachixAccount: "hnix-store" | |
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }} | |
jobs: | |
# 2020-12-22: NOTE: This is very MVP - is should be expanded, like it is in HNix. | |
build10: | |
name: "Default" | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
strategy: | |
matrix: | |
packageRoot: [ hnix-store-core, hnix-store-remote ] | |
defaults: | |
run: | |
working-directory: "./${{ matrix.packageRoot }}" | |
steps: | |
- name: "Git checkout" | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: "Install Nix" | |
uses: cachix/install-nix-action@v23 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: "Install Cachix" | |
uses: cachix/cachix-action@v12 | |
with: | |
name: ${{ env.cachixAccount }} | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- name: "Determined Nix-build" | |
run: nix-build ../ -A "haskellPackages.${{ matrix.packageRoot }}" |