Skip to content

Commit 14997d6

Browse files
authored
Merge pull request #81 from NixOS/ci
add ci
2 parents 01a3027 + c0b9c40 commit 14997d6

File tree

4 files changed

+45
-4
lines changed

4 files changed

+45
-4
lines changed

.github/workflows/ci.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
merge_group:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
nix-build:
15+
runs-on: "${{ matrix.os }}"
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os:
20+
- ubuntu-latest
21+
# not supported by the flake atm
22+
#- ubuntu-22.04-arm
23+
#- macos-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: cachix/install-nix-action@v31
27+
- uses: cachix/cachix-action@v16
28+
with:
29+
name: nixos-infra-dev
30+
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
31+
- run: nix run --inputs-from . nixpkgs#nix-fast-build -- --skip-cached --no-nom

flake.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@
6666

6767
};
6868

69-
defaultPackage.x86_64-linux = (import nixpkgs {
69+
packages.default.x86_64-linux = (import nixpkgs {
7070
system = "x86_64-linux";
7171
overlays = [ self.overlays.default ];
7272
}).nixos-channel-scripts;
73+
74+
checks.x86_64-linux.default = self.packages.default.x86_64-linux;
7375
};
7476
}

renovate.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:base", ":dependencyDashboard"],
4+
"nix": {
5+
"enabled": true
6+
},
7+
"lockFileMaintenance": { "enabled": true }
8+
}

0 commit comments

Comments
 (0)