Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! ci(windows/gnu): install `m…
Browse files Browse the repository at this point in the history
…ingw` via `msys2/setup-msys2`
  • Loading branch information
rami3l committed Jun 3, 2024
1 parent 41d8974 commit 6dcf9ef
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
27 changes: 15 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,15 @@ jobs:
if: matrix.mingwdir != ''
run: |
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")
with open(os.environ["GITHUB_PATH"], "r+") as fp:
lines = fp.readlines()
lines = paths + lines
fp.seek(0)
fp.writelines(lines)
- name: Verify mingw gcc installation
shell: powershell
if: matrix.mingwdir != ''
Expand Down Expand Up @@ -223,14 +224,15 @@ jobs:
if: matrix.mingwdir != ''
run: |
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")
with open(os.environ["GITHUB_PATH"], "r+") as fp:
lines = fp.readlines()
lines = paths + lines
fp.seek(0)
fp.writelines(lines)
- name: Verify mingw gcc installation
shell: powershell
if: matrix.mingwdir != ''
Expand Down Expand Up @@ -384,14 +386,15 @@ jobs:
if: matrix.mingwdir != ''
run: |
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")
with open(os.environ["GITHUB_PATH"], "r+") as fp:
lines = fp.readlines()
lines = paths + lines
fp.seek(0)
fp.writelines(lines)
- name: Verify mingw gcc installation
shell: powershell
if: matrix.mingwdir != ''
Expand Down
9 changes: 5 additions & 4 deletions ci/actions-templates/windows-builds-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,15 @@ jobs: # skip-master skip-pr skip-stable
if: matrix.mingwdir != ''
run: |
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")
with open(os.environ["GITHUB_PATH"], "r+") as fp:
lines = fp.readlines()
lines = paths + lines
fp.seek(0)
fp.writelines(lines)
- name: Verify mingw gcc installation
shell: powershell
if: matrix.mingwdir != ''
Expand Down

0 comments on commit 6dcf9ef

Please sign in to comment.