Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! ci(windows/gnu): install mingw v…
Browse files Browse the repository at this point in the history
…ia `msys2/setup-msys2`
  • Loading branch information
rami3l committed Jun 3, 2024
1 parent 308763f commit 41d8974
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 28 deletions.
51 changes: 30 additions & 21 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,18 @@ jobs:
msystem: ${{ matrix.mingwdir }}
install: ${{ matrix.gcc_package }}
- name: Add mingw tools to path
shell: powershell
shell: python
if: matrix.mingwdir != ''
run: |
$(
'C:\msys64\${{ matrix.mingwdir }}\bin'
'C:\msys64\usr\bin'
Get-Content $env:GITHUB_PATH
) | Set-Content $env:GITHUB_PATH
Get-Content $env:GITHUB_PATH
import os
paths = [
r'C:\msys64\${{ matrix.mingwdir }}\bin',
r'C:\msys64\usr\bin',
]
with open(os.environ["GITHUB_PATH"], "a") as f:
for path in paths:
f.write(path + "\n")
- name: Verify mingw gcc installation
shell: powershell
if: matrix.mingwdir != ''
Expand Down Expand Up @@ -216,15 +219,18 @@ jobs:
msystem: ${{ matrix.mingwdir }}
install: ${{ matrix.gcc_package }}
- name: Add mingw tools to path
shell: powershell
shell: python
if: matrix.mingwdir != ''
run: |
$(
'C:\msys64\${{ matrix.mingwdir }}\bin'
'C:\msys64\usr\bin'
Get-Content $env:GITHUB_PATH
) | Set-Content $env:GITHUB_PATH
Get-Content $env:GITHUB_PATH
import os
paths = [
r'C:\msys64\${{ matrix.mingwdir }}\bin',
r'C:\msys64\usr\bin',
]
with open(os.environ["GITHUB_PATH"], "a") as f:
for path in paths:
f.write(path + "\n")
- name: Verify mingw gcc installation
shell: powershell
if: matrix.mingwdir != ''
Expand Down Expand Up @@ -374,15 +380,18 @@ jobs:
msystem: ${{ matrix.mingwdir }}
install: ${{ matrix.gcc_package }}
- name: Add mingw tools to path
shell: powershell
shell: python
if: matrix.mingwdir != ''
run: |
$(
'C:\msys64\${{ matrix.mingwdir }}\bin'
'C:\msys64\usr\bin'
Get-Content $env:GITHUB_PATH
) | Set-Content $env:GITHUB_PATH
Get-Content $env:GITHUB_PATH
import os
paths = [
r'C:\msys64\${{ matrix.mingwdir }}\bin',
r'C:\msys64\usr\bin',
]
with open(os.environ["GITHUB_PATH"], "a") as f:
for path in paths:
f.write(path + "\n")
- name: Verify mingw gcc installation
shell: powershell
if: matrix.mingwdir != ''
Expand Down
17 changes: 10 additions & 7 deletions ci/actions-templates/windows-builds-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,18 @@ jobs: # skip-master skip-pr skip-stable
msystem: ${{ matrix.mingwdir }}
install: ${{ matrix.gcc_package }}
- name: Add mingw tools to path
shell: powershell
shell: python
if: matrix.mingwdir != ''
run: |
$(
'C:\msys64\${{ matrix.mingwdir }}\bin'
'C:\msys64\usr\bin'
Get-Content $env:GITHUB_PATH
) | Set-Content $env:GITHUB_PATH
Get-Content $env:GITHUB_PATH
import os
paths = [
r'C:\msys64\${{ matrix.mingwdir }}\bin',
r'C:\msys64\usr\bin',
]
with open(os.environ["GITHUB_PATH"], "a") as f:
for path in paths:
f.write(path + "\n")
- name: Verify mingw gcc installation
shell: powershell
if: matrix.mingwdir != ''
Expand Down

0 comments on commit 41d8974

Please sign in to comment.