2020-12-22 22:02:19 +03:00
|
|
|
name: "(Optional) Nix dev env, Linux, main"
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
schedule:
|
|
|
|
- cron: "45 03 * * *"
|
|
|
|
|
|
|
|
|
2021-01-07 22:43:47 +03:00
|
|
|
env:
|
|
|
|
cachixAccount: "hnix-store"
|
|
|
|
CACHIX_SIGNING_KEY: ${{ secrets.CACHIX_SIGNING_KEY }}
|
|
|
|
|
|
|
|
|
2020-12-22 22:02:19 +03:00
|
|
|
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"
|
2022-03-02 14:26:52 +03:00
|
|
|
uses: actions/checkout@v3
|
2020-12-22 22:02:19 +03:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: "Install Nix"
|
2022-04-07 14:34:46 +03:00
|
|
|
uses: cachix/install-nix-action@v17
|
2020-12-22 22:02:19 +03:00
|
|
|
with:
|
|
|
|
nix_path: nixpkgs=channel:nixos-unstable
|
2021-01-07 22:43:47 +03:00
|
|
|
- name: "Install Cachix"
|
2021-11-04 15:03:28 +03:00
|
|
|
uses: cachix/cachix-action@v10
|
2021-01-07 22:43:47 +03:00
|
|
|
with:
|
|
|
|
name: ${{ env.cachixAccount }}
|
|
|
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
2020-12-22 22:02:19 +03:00
|
|
|
- name: "Determined Nix-build"
|
2020-12-22 22:58:58 +03:00
|
|
|
run: nix-build ../ -A "haskellPackages.${{ matrix.packageRoot }}"
|