mirror of
https://github.com/icewind1991/nvidia-patch-nixos.git
synced 2026-06-03 19:14:06 +02:00
add workflow for updating bundled patches
This commit is contained in:
parent
a7d3995c69
commit
032c6821fa
1 changed files with 40 additions and 0 deletions
40
.github/workflows/extract.yaml
vendored
Normal file
40
.github/workflows/extract.yaml
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
name: extract patches
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
repository_dispatch:
|
||||||
|
types: [ extract ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
extract:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
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