Skip to content

Commit

Permalink
Try to workaround GitHub Actions picking wrong path in CMake.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuAuahDark committed Nov 26, 2022
1 parent 6599697 commit 5c6085d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ jobs:
defaults:
run:
shell: cmd
env:
# See https://github.com/actions/runner-images/issues/6627
CMAKE_IGNORE_PREFIX_PATH: C:/Strawberry;C:/Strawberry/c;C:/Strawberry/perl
continue-on-error: ${{ matrix.platform == 'ARM64' }}
steps:
- name: Define Variables
Expand Down

2 comments on commit 5c6085d

@Flamefire
Copy link

@Flamefire Flamefire commented on 5c6085d Nov 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be a CMake variable, i.e. something you pass to CMake via -DCMAKE_IGNORE_PREFIX_PATH=C:/Strawberry/c at 5c6085d#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3L117

The single path is enough as that is the "prefix" to C:\Strawberry\c\lib\libbz2.a (lib is a suffix)

@MikuAuahDark
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be a CMake variable, i.e. something you pass to CMake via -DCMAKE_IGNORE_PREFIX_PATH=C:/Strawberry/c at 5c6085d#diff-7829468e86c1cc5d5133195b5cb48e1ff6c75e3e9203777f6b2e379d9e4882b3L117

The single path is enough as that is the "prefix" to C:\Strawberry\c\lib\libbz2.a (lib is a suffix)

C:\Strawberry\perl also needs to be blacklisted so it ignores pkg-config.bat.

Please sign in to comment.