Skip to content

Build-Windows

Build-Windows #1

Workflow file for this run

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/[email protected]
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/[email protected]
with:
name: mvtools-windows-x86-${{ env.ARTIFACT_VERSION }}
path: build/libmvtools.dll