-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (51 loc) · 1.49 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build for Windows
on:
push:
paths:
- 'Source/*'
- '.github/workflows/build.yaml'
workflow_dispatch:
inputs:
tag:
description: 'which tag to upload to'
default: ''
jobs:
build:
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: install meson and ninja
run: pip install meson ninja
- name: download VS headers and patch header location
shell: bash
run: |
git clone https://github.com/vapoursynth/vapoursynth --depth=1
mkdir Source/vapoursynth
cp vapoursynth/include/*.h Source/vapoursynth
- name: setup MS dev commands
uses: ilammy/msvc-dev-cmd@v1
- name: Meson setup
run: meson setup builddir/ -Db_vscrt=mt
env:
CXX: clang-cl
CXXFLAGS: -mavx -mfma -Xclang -ffast-math
working-directory: Source
- name: Meson compile
run: meson compile -C builddir/ -v
working-directory: Source
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: release-windows-x64
path: Source/builddir/*.dll
- name: Release
uses: softprops/action-gh-release@v1
if: github.event_name == 'workflow_dispatch' && github.event.inputs.tag != ''
with:
tag_name: ${{ github.event.inputs.tag }}
files: Source/builddir/dpid.dll
fail_on_unmatched_files: true
generate_release_notes: false
prerelease: true