From 989d68ac99343675929dd567e1ae9a93c76ac7f2 Mon Sep 17 00:00:00 2001 From: Aidan Gauland Date: Sat, 18 Nov 2023 17:13:41 +1300 Subject: [PATCH] Initial GH Workflow GitHub Workflow to ensure all plugins build. --- .github/workflows/test.yml | 16 +++++++ test-build.nix | 90 ++++++++++++++++++++++++++++++++++++++ test-build.sh | 3 ++ 3 files changed, 109 insertions(+) create mode 100644 .github/workflows/test.yml create mode 100644 test-build.nix create mode 100755 test-build.sh diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..9a02682 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,16 @@ +name: Test +on: + pull_request: +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: cachix/install-nix-action@v22 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v12 + with: + name: nix-community + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: nix-build --show-trace --argstr vs-overlay $GITHUB_WORKSPACE diff --git a/test-build.nix b/test-build.nix new file mode 100644 index 0000000..c735254 --- /dev/null +++ b/test-build.nix @@ -0,0 +1,90 @@ +{vs-overlay}: +with import { + config.allowUnfree = true; + overlays = [ (import vs-overlay) ]; +}; +runCommand "vs-overlay-plugins-build-test" { buildInputs = [ + vapoursynthPlugins.adaptivegrain + vapoursynthPlugins.addgrain + vapoursynthPlugins.autocrop + vapoursynthPlugins.awarpsharp2 + vapoursynthPlugins.bestaudiosource + vapoursynthPlugins.beziercurve + vapoursynthPlugins.bifrost + vapoursynthPlugins.bilateral + vapoursynthPlugins.bm3d + vapoursynthPlugins.cas + vapoursynthPlugins.cnr2 + vapoursynthPlugins.combmask + vapoursynthPlugins.continuityfixer + vapoursynthPlugins.ctmf + # vapoursynthPlugins.d2vsource + vapoursynthPlugins.dctfilter + vapoursynthPlugins.deblock + vapoursynthPlugins.decross + vapoursynthPlugins.descale + vapoursynthPlugins.dfttest + vapoursynthPlugins.eedi2 + vapoursynthPlugins.eedi3m + # vapoursynthPlugins.f3kdb + vapoursynthPlugins.ffms2 + vapoursynthPlugins.fft3dfilter + vapoursynthPlugins.fillborders + vapoursynthPlugins.fluxsmooth + vapoursynthPlugins.fmtconv + vapoursynthPlugins.histogram + vapoursynthPlugins.hqdn3d + vapoursynthPlugins.imwri + vapoursynthPlugins.knlmeanscl + # vapoursynthPlugins.lsmashsource + vapoursynthPlugins.median + vapoursynthPlugins.minideen + vapoursynthPlugins.miscfilters-obsolete + vapoursynthPlugins.motionmask + vapoursynthPlugins.msmoosh + vapoursynthPlugins.mvtools + vapoursynthPlugins.nnedi3 + vapoursynthPlugins.nnedi3cl + vapoursynthPlugins.ocr + # vapoursynthPlugins.placebo + vapoursynthPlugins.readmpls + vapoursynthPlugins.remap + vapoursynthPlugins.removegrain + vapoursynthPlugins.retinex + vapoursynthPlugins.sangnom + vapoursynthPlugins.scxvid + vapoursynthPlugins.subtext + vapoursynthPlugins.tcanny + vapoursynthPlugins.temporalmedian + vapoursynthPlugins.temporalsoften2 + vapoursynthPlugins.tnlmeans + vapoursynthPlugins.ttempsmooth + vapoursynthPlugins.vivtc + # Requires non-redistributable unfree TensorRT. + # vapoursynthPlugins.vstrt + vapoursynthPlugins.wwxd + vapoursynthPlugins.znedi3 + + # vapoursynthPlugins.acsuite + vapoursynthPlugins.adjust + vapoursynthPlugins.astdr + # vapoursynthPlugins.awsmfunc + # vapoursynthPlugins.debandshit + vapoursynthPlugins.dfmderainbow + vapoursynthPlugins.edi_rpow2 + vapoursynthPlugins.finedehalo + vapoursynthPlugins.fvsfunc + vapoursynthPlugins.havsfunc + vapoursynthPlugins.kagefunc + # vapoursynthPlugins.lvsfunc + vapoursynthPlugins.mt_lutspa + vapoursynthPlugins.muvsfunc + vapoursynthPlugins.mvsfunc + vapoursynthPlugins.nnedi3_resample + vapoursynthPlugins.nnedi3_rpow2 + # vapoursynthPlugins.rekt + # vapoursynthPlugins.vardefunc + # vapoursynthPlugins.vsTAAmbk + # vapoursynthPlugins.vsgan + vapoursynthPlugins.vsutil +]; } "touch $out" diff --git a/test-build.sh b/test-build.sh new file mode 100755 index 0000000..21d8568 --- /dev/null +++ b/test-build.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +nix-build --show-trace --argstr vs-overlay $PWD test-build.nix