Skip to content

Commit b56e19a

Browse files
author
ochafik
committed
attempt to only install curl, not msys (since ccache-action uses git's sh.exe anyway)
1 parent f89cffa commit b56e19a

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,26 @@ jobs:
5454
with:
5555
fetch-depth: 0
5656

57+
- name: Check curl version BEFORE
58+
if: matrix.setup.os == 'windows-latest'
59+
run: "C:\Program Files\Git\bin\sh.exe" -xc "curl --version"
60+
5761
- name: Install Choco Deps
5862
if: matrix.setup.os == 'windows-latest'
5963
run: |
60-
choco install curl msys2 --yes
64+
choco install curl --yes
65+
echo "C:\ProgramData\chocolatey\bin" >> $GITHUB_PATH
66+
curl --version
6167
62-
- name: Prepend MSYS2 to PATH
68+
- name: Check curl version AFTER
6369
if: matrix.setup.os == 'windows-latest'
64-
run: echo "C:\msys64\usr\bin" >> $GITHUB_PATH
65-
66-
- name: Check curl version
67-
run: curl --version
68-
70+
run: "C:\Program Files\Git\bin\sh.exe" -xc "curl --version"
71+
6972
- name: ccache
7073
uses: hendrikmuhs/[email protected]
7174
with:
7275
key: ${{ matrix.setup.os }}-${{ matrix.setup.build }}-${{ matrix.type }}
76+
variant: ${{ matrix.setup.os == 'windows-latest' ? 'sccache' : 'ccache' }}
7377

7478
- name: Set up CMake
7579
uses: lukka/get-cmake@latest

0 commit comments

Comments
 (0)