Skip to content

flake.lock: Update #646

flake.lock: Update

flake.lock: Update #646

Workflow file for this run

name: "Build & push to cache"
on:
push:
branches:
- master
jobs:
tests:
name: "Build ${{ matrix.target }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
target: nixosConfigurations.sandhose-desktop.config.system.build.toplevel
- os: ubuntu-20.04
target: nixosConfigurations.spaetzle.config.system.build.toplevel
- os: macos-11
target: darwinConfigurations.sandhose-laptop.system
steps:
- name: Create Nix mount point
if: contains(matrix.os, 'ubuntu')
run: sudo mkdir /nix
- name: Maximize build space
uses: easimon/maximize-build-space@v8
if: contains(matrix.os, 'ubuntu')
with:
root-reserve-mb: 512
swap-size-mb: 1024
remove-dotnet: "true"
remove-android: "true"
remove-haskell: "true"
remove-codeql: "true"
remove-docker-image: "true"
build-mount-path: "/nix"
overprovision-lvm: "true"
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: sandhose
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
extraPullNames: nix-community
- name: Build system
env:
TARGET: ".#${{ matrix.target }}"
run: nix build $TARGET --show-trace --fallback --keep-going -v --log-format raw