Files
anyrun/.github/workflows/cachix.yml
NotAShelf 63fd38d3da Nix: fix binary cache CI and introduce module aliases (#48)
* nix: module aliases

* CI: bump install-nix-action
2023-06-21 19:23:05 +03:00

54 lines
1.4 KiB
YAML

name: "Set up binary cache & push binaries"
on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- .github/**
- .gitignore
- README.md
jobs:
cahix:
runs-on: ubuntu-latest
strategy:
matrix:
package:
- anyrun
- applications
- dictionary
- kidex
- randr
- rink
- shell
- stdin
- symbols
steps:
- uses: easimon/maximize-build-space@v6
with:
overprovision-lvm: true
remove-android: true
remove-dotnet: true
remove-haskell: true
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
auto-optimise-store = true
experimental-features = nix-command flakes
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v12
with:
authToken: ${{ secrets.CACHIX_TOKEN }}
extraPullNames: nix-community
name: anyrun
- name: Set default git branch (to reduce log spam)
run: git config --global init.defaultBranch main
- name: Validate Flakes
run: nix flake check
- name: Build anyrun from the defined matrix
run: nix build .#${{ matrix.package }} --print-build-logs