π fix: Fix ZLib build path #3
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: Windows Build | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths-ignore: | |
- "**.md" | |
- "docs/**" | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**.md" | |
- "docs/**" | |
env: | |
BETTER_MEDIA_INFO_VERSION: 0.1.0 | |
jobs: | |
build_package: | |
name: Build for Windows x86_64 | |
runs-on: windows-latest | |
steps: | |
- name: Set git to use LF | |
run: | | |
git config --global core.autocrlf false | |
git config --global core.eol lf | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Setup Rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Setup MSBuild | |
uses: microsoft/setup-msbuild@v2 | |
- name: Setup CMake | |
uses: jwlawson/actions-setup-cmake@v2 | |
with: | |
cmake-version: '3.28.x' | |
- name: Build ZLib | |
run: | | |
cd .. | |
curl -o zlib.zip https://www.zlib.net/zlib131.zip | |
7z x zlib.zip | |
move zlib-1.3.1 ZLib | |
del zlib.zip | |
cd ZLib | |
cmake -A x64 . | |
cmake --build . --config Release | |
- name: Download ZenLib | |
run: | | |
cd .. | |
git clone https://github.com/MediaArea/ZenLib.git | |
- name: Build MediaInfoLib | |
run: | | |
cd .. | |
git clone https://github.com/MediaArea/MediaInfoLib.git | |
cd MediaInfoLib\Project\MSVC2022 | |
msbuild MediaInfoLib.sln -t:rebuild -verbosity:diag -property:Configuration=Release | |
- name: Build Better Media Info | |
run: | | |
pnpm install | |
pnpm tauri build | |
- name: Upload the Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Better_Media_Info-windows-x86_64-${{ env.BETTER_MEDIA_INFO_VERSION }} | |
path: | | |
src-tauri/target/release/bundle/msi/*.msi |