From 3fe0d3021bc0cc20d72250d7646e35aef41890b9 Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Tue, 6 Jan 2026 13:29:06 -0600 Subject: [PATCH] download pre-compiled windows launcher instead of building it with each commit --- .github/workflows/artifacts.yml | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index e39d1d9ff..098665714 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -244,28 +244,10 @@ jobs: main/ retention-days: 1 - build_rust_windows: - name: Build rust for Windows - runs-on: windows-latest - steps: - - name: Get the sources - uses: actions/checkout@v4 - - - name: Build Windows Launcher - shell: bash - run: cargo build --manifest-path=ErsatzTV-Windows/Cargo.toml --release --all-features - - - name: Upload Rust Artifact - uses: actions/upload-artifact@v4 - with: - name: rust-windows-build - path: ErsatzTV-Windows/target/release/ersatztv_windows.exe - retention-days: 1 - package_and_upload_windows: name: Package & Upload Windows runs-on: ubuntu-latest - needs: [build_dotnet_windows, build_rust_windows] + needs: build_dotnet_windows steps: - name: Download dotnet artifacts uses: actions/download-artifact@v4 @@ -273,10 +255,10 @@ jobs: name: dotnet-windows-build path: dotnet-build - - name: Download rust artifacts - uses: actions/download-artifact@v4 + - name: Download rust launcher + uses: suisei-cn/actions-download-file@v1.3.0 with: - name: rust-windows-build + url: "https://github.com/ErsatzTV/ErsatzTV-Windows/releases/download/v1.0.0/ErsatzTV-Windows.exe" path: rust-build - name: Download ffmpeg @@ -299,7 +281,7 @@ jobs: # dotnet shouldn't copy the resources here, but it does rm -rf "$release_name/Resources" - mv rust-build/ersatztv_windows.exe "$release_name/ErsatzTV-Windows.exe" + mv rust-build/ErsatzTV-Windows.exe "$release_name/ErsatzTV-Windows.exe" 7z e "ffmpeg/${{ steps.downloadffmpeg.outputs.filename }}" -o"$release_name" '*.exe' -r rm -f "$release_name/ffplay.exe"