Skip to content

Commit

Permalink
.github/workflows/build.yaml: add CI
Browse files Browse the repository at this point in the history
Signed-off-by: akarin <i@akarin.info>
  • Loading branch information
AkarinVS committed Jan 15, 2022
1 parent 5baab37 commit 4e8d7ab
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/build.yaml
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

0 comments on commit 4e8d7ab

Please sign in to comment.