.github/workflows/build.yaml: downgrade libplacebo #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: "Which tag to create and release?" | |
required: true | |
default: v0.0.0 | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: msys2/setup-msys2@v2 | |
- name: Set up environment | |
shell: msys2 {0} | |
run: | | |
pacman -Sy --noconfirm | |
pacman -S --noconfirm pacman | |
pacman -S --noconfirm mingw-w64-x86_64-{gcc,pkg-config,meson,python-mako,vulkan-devel,libplacebo,rust,cargo-c} | |
- name: Downgrade libplacebo | |
shell: msys2 {0} | |
run: | | |
pacman -S --noconfirm --needed git base-devel | |
git clone https://aur.archlinux.org/yay.git | |
cd yay | |
makepkg -si | |
cd .. | |
yay -S downgrade | |
downgrade 'mingw-w64-x86_64-libplacebo==5.229.0' | |
- name: Build release | |
shell: msys2 {0} | |
run: | | |
meson build --prefer-static -Dpkg_config_path=$(pwd)/build/libdovi.d/lib/pkgconfig | |
ninja -C build | |
strip build/libvs_placebo.dll | |
- name: Upload release | |
uses: actions/upload-artifact@v3 | |
with: | |
name: vs-placebo | |
path: | | |
build/libvs_placebo.dll | |
- name: Release | |
if: github.event_name == 'workflow_dispatch' && github.event.inputs.tag != '' | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ github.event.inputs.tag }} | |
files: build/libvs_placebo.dll | |
fail_on_unmatched_files: true | |
generate_release_notes: false | |
prerelease: true |