Address warnings #151
This file contains hidden or 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 CI Build | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| windows-build: | |
| runs-on: windows-latest | |
| env: | |
| VCPKG_ROOT: C:\vcpkg | |
| VCPKG_FEATURE_FLAGS: manifests | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Rust toolchain | |
| uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| toolchain: stable | |
| rustflags: '' | |
| - name: Install Vulkan SDK | |
| shell: pwsh | |
| run: | | |
| $vulkanSdkVersion = "1.4.304.0" | |
| mkdir temp | |
| Invoke-WebRequest https://sdk.lunarg.com/sdk/download/$vulkanSdkVersion/windows/VulkanSDK-$vulkanSdkVersion-Installer.exe -OutFile ./temp/vulkan_sdk.exe | |
| ./temp/vulkan_sdk.exe in --da --al -c | |
| ls C:\VulkanSDK | |
| - name: Cache ffmpeg | |
| uses: actions/cache@v3 | |
| with: | |
| path: vcpkg_installed | |
| key: ${{ runner.os }}-build-ffmpeg | |
| - name: Install ffmpeg | |
| shell: pwsh | |
| run: | | |
| & "$env:VCPKG_ROOT\vcpkg.exe" install --triplet=x64-windows-static-md --x-manifest-root="$env:GITHUB_WORKSPACE" --x-install-root="$env:GITHUB_WORKSPACE\vcpkg_installed" | |
| - name: Build Yaobow | |
| shell: pwsh | |
| run: | | |
| $vulkanSdkVersion = "1.4.304.0" | |
| $env:Path += ";C:\VulkanSDK\${vulkanSdkVersion}\Bin" | |
| cargo build --workspace --release --verbose | |
| - name: Zip Packaging | |
| run: | | |
| mkdir target/release/yaobow | |
| cp openpal3.toml target/release/yaobow | |
| cp target/release/yaobow.exe target/release/yaobow | |
| cp target/release/yaobow_editor.exe target/release/yaobow | |
| 7z a -tzip target/yaobow-windows-x86_64.zip target/release/yaobow | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: yaobow-windows-x86_64 | |
| path: target/yaobow-windows-x86_64.zip |