mirror of
https://github.com/icewind1991/nvidia-patch-nixos.git
synced 2026-06-03 11:04:06 +02:00
test the patching in ci
This commit is contained in:
parent
4067b499f6
commit
d8ae037271
4 changed files with 19 additions and 1 deletions
16
.github/workflows/test.yml
vendored
Normal file
16
.github/workflows/test.yml
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
name: Test patching
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
checks:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: cachix/install-nix-action@v27
|
||||||
|
- uses: icewind1991/attic-action@v1
|
||||||
|
with:
|
||||||
|
name: ci
|
||||||
|
instance: https://cache.icewind.me
|
||||||
|
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
||||||
|
- run: nix build .#nvidia-patched
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,3 +1,3 @@
|
||||||
/result
|
/result*
|
||||||
/.direnv
|
/.direnv
|
||||||
nvidia-patch
|
nvidia-patch
|
||||||
|
|
@ -15,10 +15,12 @@
|
||||||
];
|
];
|
||||||
pkgs = (import nixpkgs) {
|
pkgs = (import nixpkgs) {
|
||||||
inherit system overlays;
|
inherit system overlays;
|
||||||
|
config.allowUnfreePredicate = pkg: true;
|
||||||
};
|
};
|
||||||
in rec {
|
in rec {
|
||||||
packages = rec {
|
packages = rec {
|
||||||
inherit (pkgs) nvidia-patch-extractor nvidia-patch nvidia-patch-list;
|
inherit (pkgs) nvidia-patch-extractor nvidia-patch nvidia-patch-list;
|
||||||
|
nvidia-patched = nvidia-patch.patch-nvenc (nvidia-patch.patch-fbc pkgs.linuxPackages.nvidiaPackages.stable);
|
||||||
};
|
};
|
||||||
devShell = pkgs.mkShell {
|
devShell = pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs; [jq patch];
|
nativeBuildInputs = with pkgs; [jq patch];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue