1 Commits

Author SHA1 Message Date
183980b7bb add a nix-flake runner
Some checks failed
Nix / build (nixos-22.11) (pull_request) Failing after 18s
Nix / build (nixos-23.05) (pull_request) Failing after 26s
Nix / build (nixos-unstable) (pull_request) Failing after 26s
2023-09-07 15:44:37 -04:00
2 changed files with 12 additions and 3 deletions

View File

@@ -18,12 +18,11 @@ jobs:
- nixos-unstable - nixos-unstable
- nixos-22.11 - nixos-22.11
- nixos-23.05 - nixos-23.05
runs-on: native runs-on: ubuntu-latest
container: pjjw/nix-flake-runner:1
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: cachix/install-nix-action@v22
- run: nix-shell --run ./ci.sh - run: nix-shell --run ./ci.sh
env: env:
CI_PROJECT_PATH: pjjw
CI_REGISTRY_AUTH: '${{ secrets.REGISTRY_AUTH }}' CI_REGISTRY_AUTH: '${{ secrets.REGISTRY_AUTH }}'
NIXPKGS_CHANNEL: '${{ matrix.channel }}' NIXPKGS_CHANNEL: '${{ matrix.channel }}'

View File

@@ -0,0 +1,10 @@
{ docker-nixpkgs
, nodejs
, extraContents ? [ ]
}:
docker-nixpkgs.nix-flakes.override {
extraContents = [
# nodejs for runner
nodejs
] ++ extraContents;
}