forked from HomeOfVapourSynthEvolution/VapourSynth-AddGrain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.github/workflows/build.yaml: add CI
Signed-off-by: akarin <i@akarin.info>
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Build | ||
on: | ||
- push | ||
- release | ||
- pull_request | ||
- workflow_dispatch | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
arch: | ||
- amd64 | ||
- x86 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: setup MS dev commands | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
with: | ||
arch: ${{ matrix.arch }} | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: install meson and ninja | ||
run: pip install meson ninja | ||
|
||
- name: Plug in vs-api3 | ||
shell: bash | ||
run: | | ||
git clone https://github.com/AmusementClub/vs-api3 --depth=1 --branch master api3 | ||
cp api3/api3.cc AddGrain/ | ||
sed -i -e "/AddGrain.cpp'/s//&, 'AddGrain\\/api3.cc'/" meson.build | ||
cat meson.build | ||
- name: download VS headers and patch header location | ||
shell: bash | ||
run: | | ||
git clone https://github.com/AmusementClub/vapoursynth-classic --depth=1 --branch doodle2 vapoursynth | ||
cp vapoursynth/include/*.h AddGrain/ | ||
sed -i -e '/#include <V/y|<>|""|' AddGrain/AddGrain.h | ||
- name: Meson setup | ||
run: meson setup builddir/ -Db_vscrt=mt | ||
- name: Meson compile | ||
run: meson compile -C builddir/ -v | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: release-${{matrix.arch}} | ||
path: | | ||
builddir/addgrain.dll |