Skip to content

Commit

Permalink
workflows workaround for FetchContent
Browse files Browse the repository at this point in the history
Temporary workaround until the FetchContent UPDATE_DISCONNECTED bugs
will be fixed.

See: https://discourse.cmake.org/t/fetchcontent-declare-update-disconnected-and-vcpkg/11312
  • Loading branch information
silverqx committed Jul 25, 2024
1 parent d5b9a01 commit 92a6975
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/vcpkg-linux-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,14 @@ jobs:
run: |
ccache --zero-stats
# Temporary workaround until the FetchContent UPDATE_DISCONNECTED bugs will be fixed
# See: https://discourse.cmake.org/t/fetchcontent-declare-update-disconnected-and-vcpkg/11312
- name: HelloWorld remove build and install trees (FetchContent method)
working-directory: ${{ env.RUNNER_WORKSPACE }}
run: >-
rm --force --recursive ./HelloWorld-builds-cmake/build-TinyDrivers-fetchcontent-gcc-*
rm --force --recursive ./HelloWorld-TinyDrivers-FetchContent-Install
# CMAKE_DISABLE_PRECOMPILE_HEADERS=OFF is correct (I want to use PCH here)
- name: HelloWorld-TinyDrivers cmake configure (${{ env.HelloWorldFetchContentBuildName }})
working-directory: HelloWorld-TinyDrivers
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/vcpkg-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,14 @@ jobs:
run: |
ccache --zero-stats
# Temporary workaround until the FetchContent UPDATE_DISCONNECTED bugs will be fixed
# See: https://discourse.cmake.org/t/fetchcontent-declare-update-disconnected-and-vcpkg/11312
- name: HelloWorld remove build and install trees (FetchContent method)
working-directory: ${{ env.RUNNER_WORKSPACE }}
run: >-
rm --force --recursive ./HelloWorld-builds-cmake/build-fetchcontent-gcc-*
rm --force --recursive ./HelloWorld-FetchContent-Install
# CMAKE_DISABLE_PRECOMPILE_HEADERS=OFF is correct (I want to use PCH here)
- name: HelloWorld cmake configure (${{ env.HelloWorldFetchContentBuildName }})
working-directory: HelloWorld
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/vcpkg-windows-drivers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,15 @@ jobs:
run: |
ccache.exe --zero-stats
# Temporary workaround until the FetchContent UPDATE_DISCONNECTED bugs will be fixed
# See: https://discourse.cmake.org/t/fetchcontent-declare-update-disconnected-and-vcpkg/11312
- name: HelloWorld remove build and install trees (FetchContent method)
working-directory: ${{ env.RUNNER_WORKSPACE }}
run: >-
Remove-Item -Force -Recurse -Path
./HelloWorld-builds-cmake/Drivers-fetchcontent-msvc-*,
./HelloWorld-TinyDrivers-FetchContent-Install
# CMAKE_DISABLE_PRECOMPILE_HEADERS=ON is correct (Windows ccache doesn't work well with PCH)
- name: HelloWorld-TinyDrivers cmake configure (${{ env.HelloWorldFetchContentBuildName }})
working-directory: HelloWorld-TinyDrivers
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/vcpkg-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,15 @@ jobs:
run: |
ccache.exe --zero-stats
# Temporary workaround until the FetchContent UPDATE_DISCONNECTED bugs will be fixed
# See: https://discourse.cmake.org/t/fetchcontent-declare-update-disconnected-and-vcpkg/11312
- name: HelloWorld remove build and install trees (FetchContent method)
working-directory: ${{ env.RUNNER_WORKSPACE }}
run: >-
Remove-Item -Force -Recurse -Path
./HelloWorld-builds-cmake/build-fetchcontent-msvc-*,
./HelloWorld-FetchContent-Install
# CMAKE_DISABLE_PRECOMPILE_HEADERS=ON is correct (Windows ccache doesn't work well with PCH)
- name: HelloWorld cmake configure (${{ env.HelloWorldFetchContentBuildName }})
working-directory: HelloWorld
Expand Down

0 comments on commit 92a6975

Please sign in to comment.