diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4012e556..839d3137 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,6 +74,17 @@ jobs: run: | pipx install gvsbuild gvsbuild build gtk4 + if: runner.os == 'Windows' && steps.cache.outputs.cache-hit != 'true' + + # TODO: This is a workaround for https://github.com/wingtk/gvsbuild/issues/984, remove once fixed upstream + - name: Restore git binary (Windows) + run: | + Move-Item "C:\Program Files\Git\usr\notbin" "C:\Program Files\Git\usr\bin" + Move-Item "C:\Program Files\Git\notbin" "C:\Program Files\Git\bin" + if: runner.os == 'Windows' && steps.cache.outputs.cache-hit != 'true' + + - name: Configure GTK4 (Windows) + run: | Add-Content $env:GITHUB_ENV "PKG_CONFIG_PATH=C:\gtk-build\gtk\x64\release\lib\pkgconfig" Add-Content $env:GITHUB_ENV ("LIB=" + $env:LIB + ";" + "C:\gtk-build\gtk\x64\release\lib") Add-Content $env:GITHUB_PATH "C:\gtk-build\gtk\x64\release\bin" @@ -87,14 +98,7 @@ jobs: Get-Content actual-dlls.log Throw "Actual DLLs do not match expected" } - if: runner.os == 'Windows' && steps.cache.outputs.cache-hit != 'true' - - # TODO: This is a workaround for https://github.com/wingtk/gvsbuild/issues/984, remove once fixed upstream - - name: Restore git binary (Windows) - run: | - Move-Item "C:\Program Files\Git\usr\notbin" "C:\Program Files\Git\usr\bin" - Move-Item "C:\Program Files\Git\notbin" "C:\Program Files\Git\bin" - if: runner.os == 'Windows' && steps.cache.outputs.cache-hit != 'true' + if: runner.os == 'Windows' # On macOS, we need a proper Clang version, not Apple's custom version without wasm32 support # TODO: on macOS, the consensus/domain runtime build is not compatible with LLVM 15.0.7 and diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 617220f2..e89b78c1 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -94,6 +94,17 @@ jobs: run: | pipx install gvsbuild gvsbuild build gtk4 + if: runner.os == 'Windows' && steps.cache.outputs.cache-hit != 'true' + + # TODO: This is a workaround for https://github.com/wingtk/gvsbuild/issues/984, remove once fixed upstream + - name: Restore git binary (Windows) + run: | + Move-Item "C:\Program Files\Git\usr\notbin" "C:\Program Files\Git\usr\bin" + Move-Item "C:\Program Files\Git\notbin" "C:\Program Files\Git\bin" + if: runner.os == 'Windows' && steps.cache.outputs.cache-hit != 'true' + + - name: Configure GTK4 (Windows) + run: | Add-Content $env:GITHUB_ENV "PKG_CONFIG_PATH=C:\gtk-build\gtk\x64\release\lib\pkgconfig" Add-Content $env:GITHUB_ENV ("LIB=" + $env:LIB + ";" + "C:\gtk-build\gtk\x64\release\lib") Add-Content $env:GITHUB_PATH "C:\gtk-build\gtk\x64\release\bin" @@ -107,14 +118,7 @@ jobs: Get-Content actual-dlls.log Throw "Actual DLLs do not match expected" } - if: runner.os == 'Windows' && steps.cache.outputs.cache-hit != 'true' - - # TODO: This is a workaround for https://github.com/wingtk/gvsbuild/issues/984, remove once fixed upstream - - name: Restore git binary (Windows) - run: | - Move-Item "C:\Program Files\Git\usr\notbin" "C:\Program Files\Git\usr\bin" - Move-Item "C:\Program Files\Git\notbin" "C:\Program Files\Git\bin" - if: runner.os == 'Windows' && steps.cache.outputs.cache-hit != 'true' + if: runner.os == 'Windows' # On macOS, we need a proper Clang version, not Apple's custom version without wasm32 support # TODO: on macOS, the consensus/domain runtime build is not compatible with LLVM 15.0.7 and @@ -201,6 +205,17 @@ jobs: run: | pipx install gvsbuild gvsbuild build gtk4 + if: runner.os == 'Windows' && steps.cache.outputs.cache-hit != 'true' + + # TODO: This is a workaround for https://github.com/wingtk/gvsbuild/issues/984, remove once fixed upstream + - name: Restore git binary (Windows) + run: | + Move-Item "C:\Program Files\Git\usr\notbin" "C:\Program Files\Git\usr\bin" + Move-Item "C:\Program Files\Git\notbin" "C:\Program Files\Git\bin" + if: runner.os == 'Windows' && steps.cache.outputs.cache-hit != 'true' + + - name: Configure GTK4 (Windows) + run: | Add-Content $env:GITHUB_ENV "PKG_CONFIG_PATH=C:\gtk-build\gtk\x64\release\lib\pkgconfig" Add-Content $env:GITHUB_ENV ("LIB=" + $env:LIB + ";" + "C:\gtk-build\gtk\x64\release\lib") Add-Content $env:GITHUB_PATH "C:\gtk-build\gtk\x64\release\bin" @@ -214,14 +229,7 @@ jobs: Get-Content actual-dlls.log Throw "Actual DLLs do not match expected" } - if: runner.os == 'Windows' && steps.cache.outputs.cache-hit != 'true' - - # TODO: This is a workaround for https://github.com/wingtk/gvsbuild/issues/984, remove once fixed upstream - - name: Restore git binary (Windows) - run: | - Move-Item "C:\Program Files\Git\usr\notbin" "C:\Program Files\Git\usr\bin" - Move-Item "C:\Program Files\Git\notbin" "C:\Program Files\Git\bin" - if: runner.os == 'Windows' && steps.cache.outputs.cache-hit != 'true' + if: runner.os == 'Windows' # On macOS, we need a proper Clang version, not Apple's custom version without wasm32 support # TODO: on macOS, the consensus/domain runtime build is not compatible with LLVM 15.0.7 and