mirror of
https://github.com/icewind1991/nvidia-patch-nixos.git
synced 2026-06-03 19:14: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
44
.github/workflows/extract.yml
vendored
Normal file
44
.github/workflows/extract.yml
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
name: extract patches
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
repository_dispatch:
|
||||
types: [ build ]
|
||||
|
||||
jobs:
|
||||
extract:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Checkout nvidia-patch
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: keylase/nvidia-patch
|
||||
path: nvidia-patch
|
||||
- name: Setup Nix
|
||||
uses: cachix/install-nix-action@v25
|
||||
- name: Setup cache
|
||||
uses: icewind1991/attic-action@v1
|
||||
with:
|
||||
name: ci
|
||||
instance: https://cache.icewind.me
|
||||
authToken: '${{ secrets.ATTIC_TOKEN }}'
|
||||
- name: Extract nvenc patch
|
||||
run: |
|
||||
nix run .#nvidia-patch-extractor nvidia-patch/patch.sh > patch.json
|
||||
- name: Extract fbc patch
|
||||
run: |
|
||||
nix run .#nvidia-patch-extractor nvidia-patch/patch-fbc.sh > patch-fbc.json
|
||||
- name: Commit updated patches
|
||||
uses: devops-infra/action-commit-push@v0.9.2
|
||||
with:
|
||||
github_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
commit_prefix: "[AUTO]"
|
||||
commit_message: "Update bundled patches"
|
||||
Loading…
Add table
Add a link
Reference in a new issue