Compare commits

...

2 Commits

Author SHA1 Message Date
Aidan Gauland bf68223be0
Use Python 3 in build test
Override `python` package to point to `python3`, since `python` is the
EOL Python 2.7.
2023-11-18 17:18:33 +13:00
Aidan Gauland c461c6689f
Initial GH Workflow
GitHub Workflow to ensure all plugins build.
2023-11-18 17:16:53 +13:00
3 changed files with 113 additions and 0 deletions

16
.github/workflows/test.yml vendored Normal file
View File

@ -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 test-build.nix

94
test-build.nix Normal file
View File

@ -0,0 +1,94 @@
{vs-overlay}:
with import <nixpkgs> {
config.allowUnfree = true;
overlays = [ (import vs-overlay) ];
# Force default Python to 3.x
config.packageOverrides = pkgs: {
python = pkgs.python3;
};
};
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"

3
test-build.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
nix-build --show-trace --argstr vs-overlay $PWD test-build.nix