Skip to content

Commit

Permalink
Merge pull request #78 from Stefan-Olt/master
Browse files Browse the repository at this point in the history
github runner for windows build, version set to 24
  • Loading branch information
Stefan-Olt authored Aug 5, 2024
2 parents a81d5b5 + a68f04d commit d9270be
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 2 deletions.
84 changes: 84 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
name: Build-Windows

on: workflow_dispatch

permissions:
attestations: write
contents: read
id-token: write

jobs:
build-windows-x64:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >-
base-devel
mingw-w64-x86_64-jq
mingw-w64-x86_64-gcc
mingw-w64-x86_64-pkg-config
mingw-w64-x86_64-vapoursynth
mingw-w64-x86_64-meson
mingw-w64-x86_64-ninja
mingw-w64-x86_64-nasm
mingw-w64-x86_64-fftw
- name: Build vs-mvtools
run: |
meson setup build --buildtype release --prefer-static --default-library=static -Dcpp_link_args='-static'
meson compile -vC build
- name: Export version
run: |
echo "ARTIFACT_VERSION=$(meson introspect --projectinfo build | jq -r '.version')" >> $GITHUB_ENV
- name: Upload
uses: actions/upload-artifact@v4.3.3
with:
name: mvtools-windows-x64-${{ env.ARTIFACT_VERSION }}
path: build/libmvtools.dll
build-windows-x86:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW32
update: true
install: >-
base-devel
mingw-w64-i686-jq
mingw-w64-i686-gcc
mingw-w64-i686-pkg-config
mingw-w64-i686-vapoursynth
mingw-w64-i686-meson
mingw-w64-i686-ninja
mingw-w64-i686-nasm
mingw-w64-i686-fftw
- name: Build vs-mvtools
run: |
meson setup build --buildtype release --prefer-static --default-library=static -Dcpp_link_args='-static'
meson compile -vC build
- name: Export version
run: |
echo "ARTIFACT_VERSION=$(meson introspect --projectinfo build | jq -r '.version')" >> $GITHUB_ENV
- name: Upload
uses: actions/upload-artifact@v4.3.3
with:
name: mvtools-windows-x86-${{ env.ARTIFACT_VERSION }}
path: build/libmvtools.dll
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
AC_INIT([MVTools], [23], [https://github.com/dubhater/vapoursynth-mvtools/issues], [MVTools], [https://github.com/dubhater/vapoursynth-mvtools/])
AC_INIT([MVTools], [24], [https://github.com/dubhater/vapoursynth-mvtools/issues], [MVTools], [https://github.com/dubhater/vapoursynth-mvtools/])

: ${CFLAGS=""}
: ${CXXFLAGS=""}
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('MVTools', 'c', 'cpp',
version: '23',
version: '24',
default_options: ['c_std=c99', 'cpp_std=c++11', 'buildtype=release', 'b_lto=true'],
meson_version: '>=0.46')

Expand Down

0 comments on commit d9270be

Please sign in to comment.