nix: housekeeping (#100)
* flake: bump inputs * CI: simplify cachix workflow * CI: separate nix flake checking
This commit is contained in:
31
.github/workflows/cachix.yml
vendored
31
.github/workflows/cachix.yml
vendored
@@ -2,16 +2,22 @@ name: "Set up binary cache & push binaries"
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- .gitignore
|
||||||
|
- README.md
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- .github/**
|
|
||||||
- .gitignore
|
- .gitignore
|
||||||
- README.md
|
- README.md
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cachix:
|
cachix:
|
||||||
|
name: "Build Exposed Packages"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -27,28 +33,29 @@ jobs:
|
|||||||
- symbols
|
- symbols
|
||||||
- websearch
|
- websearch
|
||||||
steps:
|
steps:
|
||||||
- uses: easimon/maximize-build-space@v6
|
- uses: easimon/maximize-build-space@v8
|
||||||
with:
|
with:
|
||||||
overprovision-lvm: true
|
overprovision-lvm: true
|
||||||
remove-android: true
|
remove-android: true
|
||||||
remove-dotnet: true
|
remove-dotnet: true
|
||||||
remove-haskell: true
|
remove-haskell: true
|
||||||
- uses: actions/checkout@v3
|
remove-docker-images: true
|
||||||
- uses: cachix/install-nix-action@v22
|
remove-codeql: true
|
||||||
with:
|
|
||||||
extra_nix_config: |
|
- name: Checkout
|
||||||
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
uses: actions/checkout@v4
|
||||||
auto-optimise-store = true
|
|
||||||
experimental-features = nix-command flakes
|
- uses: DeterminateSystems/nix-installer-action@main
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
|
|
||||||
- uses: cachix/cachix-action@v12
|
- uses: cachix/cachix-action@v12
|
||||||
with:
|
with:
|
||||||
authToken: ${{ secrets.CACHIX_TOKEN }}
|
authToken: ${{ secrets.CACHIX_TOKEN }}
|
||||||
extraPullNames: nix-community
|
extraPullNames: nix-community
|
||||||
name: anyrun
|
name: anyrun
|
||||||
|
|
||||||
- name: Set default git branch (to reduce log spam)
|
- name: Set default git branch (to reduce log spam)
|
||||||
run: git config --global init.defaultBranch main
|
run: git config --global init.defaultBranch main
|
||||||
- name: Validate Flakes
|
|
||||||
run: nix flake check
|
|
||||||
- name: Build anyrun from the defined matrix
|
- name: Build anyrun from the defined matrix
|
||||||
run: nix build .#${{ matrix.package }} --print-build-logs
|
run: nix build .#${{ matrix.package }} --print-build-logs
|
||||||
|
19
.github/workflows/check.yml
vendored
Normal file
19
.github/workflows/check.yml
vendored
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
name: Flake Check
|
||||||
|
|
||||||
|
on: [push, pull_request, workflow_dispatch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-flake:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Nix
|
||||||
|
uses: DeterminateSystems/nix-installer-action@main
|
||||||
|
with:
|
||||||
|
logger: pretty
|
||||||
|
|
||||||
|
- name: Check Flake
|
||||||
|
run: nix flake check --accept-flake-config
|
12
flake.lock
generated
12
flake.lock
generated
@@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1685662779,
|
"lastModified": 1696343447,
|
||||||
"narHash": "sha256-cKDDciXGpMEjP1n6HlzKinN0H+oLmNpgeCTzYnsA2po=",
|
"narHash": "sha256-B2xAZKLkkeRFG5XcHHSXXcP7To9Xzr59KXeZiRf4vdQ=",
|
||||||
"owner": "hercules-ci",
|
"owner": "hercules-ci",
|
||||||
"repo": "flake-parts",
|
"repo": "flake-parts",
|
||||||
"rev": "71fb97f0d875fd4de4994dfb849f2c75e17eb6c3",
|
"rev": "c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -22,11 +22,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1685655444,
|
"lastModified": 1696193975,
|
||||||
"narHash": "sha256-6EujQNAeaUkWvpEZZcVF8qSfQrNVWFNNGbUJxv/A5a8=",
|
"narHash": "sha256-mnQjUcYgp9Guu3RNVAB2Srr1TqKcPpRXmJf4LJk6KRY=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e635192892f5abbc2289eaac3a73cdb249abaefd",
|
"rev": "fdd898f8f79e8d2f99ed2ab6b3751811ef683242",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
Reference in New Issue
Block a user