Harmonize GHA workflows a little, add nix-bincache.rory.gay to trusted list to make github go brr

This commit is contained in:
Rory&
2026-07-11 07:53:54 +02:00
parent aa926a5302
commit 4cfb0bb6c0
5 changed files with 29 additions and 9 deletions
+5 -1
View File
@@ -26,7 +26,11 @@ jobs:
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
system-features = nixos-test benchmark big-parallel kvm
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-bincache.rory.gay:663PIW8xxgIImxLcsokODWI2PHFWXvzJEfjX6TaIjxQ=
trusted-substituters = https://cache.nixos.org https://nix-bincache.rory.gay
- name: Build the docker image
run: nix build .#containers.x86_64-linux.docker.${{ matrix.package }}
- run: docker load < result
+7 -2
View File
@@ -14,10 +14,15 @@ jobs:
contents: write
steps:
- name: Check Out Code
uses: actions/checkout@v5
uses: actions/checkout@v6
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
uses: cachix/install-nix-action@v31
with:
extra_nix_config: |
system-features = nixos-test benchmark big-parallel kvm
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-bincache.rory.gay:663PIW8xxgIImxLcsokODWI2PHFWXvzJEfjX6TaIjxQ=
trusted-substituters = https://cache.nixos.org https://nix-bincache.rory.gay
- name: Update Nix Flake
run: nix flake update --extra-experimental-features 'nix-command flakes'
+6 -3
View File
@@ -9,11 +9,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-unstable
#- uses: DeterminateSystems/magic-nix-cache-action@v13
extra_nix_config: |
system-features = nixos-test benchmark big-parallel kvm
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-bincache.rory.gay:663PIW8xxgIImxLcsokODWI2PHFWXvzJEfjX6TaIjxQ=
trusted-substituters = https://cache.nixos.org https://nix-bincache.rory.gay
- run: nix build -L -j auto
- run: nix develop --command echo OK
- run: nix flake check -vL -j auto
+1 -2
View File
@@ -8,7 +8,6 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
@@ -17,7 +16,7 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v5
with:
+10 -1
View File
@@ -1,6 +1,15 @@
{
description = "Spacebar server, written in Typescript.";
nixConfig = {
extra-substituters = [
"https://nix-bincache.rory.gay"
];
extra-trusted-public-keys = [
"nix-bincache.rory.gay:663PIW8xxgIImxLcsokODWI2PHFWXvzJEfjX6TaIjxQ="
];
};
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/master"; # temp hack because unstable is frozen
flake-utils.url = "github:numtide/flake-utils";
@@ -125,4 +134,4 @@
inherit self nixpkgs flake-utils;
}
);
}
}