From a68f04dd1dadce593f6c2401a939125a53bc1800 Mon Sep 17 00:00:00 2001 From: Stefan-Olt Date: Mon, 5 Aug 2024 23:53:17 +0200 Subject: [PATCH] github runner for windows build, version set to 24 --- .github/workflows/build-windows.yml | 84 +++++++++++++++++++++++++++++ configure.ac | 2 +- meson.build | 2 +- 3 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build-windows.yml diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml new file mode 100644 index 0000000..923ca13 --- /dev/null +++ b/.github/workflows/build-windows.yml @@ -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 diff --git a/configure.ac b/configure.ac index d257a2b..b8f0829 100644 --- a/configure.ac +++ b/configure.ac @@ -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=""} diff --git a/meson.build b/meson.build index 8291ce0..f24a406 100644 --- a/meson.build +++ b/meson.build @@ -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')