Skip to content

Commit

Permalink
Fix GitHub actions for windows (#3821)
Browse files Browse the repository at this point in the history
Build was failing due to g++ being moved, causing XSTools.dll build to fail
  • Loading branch information
lututui authored Oct 23, 2023
1 parent 78d11a2 commit e170a23
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/build_XSTools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,16 @@ jobs:
echo 'mv c:/Strawberry/ c:/Strawberry_old'
mv c:/Strawberry/ c:/Strawberry_old
}
echo "== remove g++ x64"
echo 'rm c:/ProgramData/Chocolatey/bin/g++.exe'
rm c:/ProgramData/Chocolatey/bin/g++.exe
if ( Test-Path "c:/ProgramData/Chocolatey/bin/g++.exe" -PathType leaf ) {
echo "== remove g++ x64"
echo 'rm c:/ProgramData/Chocolatey/bin/g++.exe'
rm c:/ProgramData/Chocolatey/bin/g++.exe
}
if ( Test-Path "c:/mingw64/bin/g++.exe" -PathType leaf) {
echo "== remove mingw64 g++"
echo 'rm c:/mingw64/bin/g++.exe'
rm c:/mingw64/bin/g++.exe
}
- name: Check the Strawberry cache
id: cache-strawberry
Expand Down Expand Up @@ -256,8 +263,8 @@ jobs:
- name: Checking for XSTools
shell: bash
run: |
echo -e "\e[34m# ls -lh | grep XSTools"
ls -lh | grep XSTools
echo -e "\e[34m# ls -lh | grep XSTools | grep -v notes"
ls -lh | grep XSTools | grep -v notes
#############
# make test #
Expand Down Expand Up @@ -442,8 +449,8 @@ jobs:
- name: Checking for XSTools
shell: bash
run: |
echo -e "\e[34m# ls -lh | grep XSTools"
ls -lh | grep XSTools
echo -e "\e[34m# ls -lh | grep XSTools | grep -v notes"
ls -lh | grep XSTools | grep -v notes
#############
# make test #
Expand Down

0 comments on commit e170a23

Please sign in to comment.