Skip to content

Commit

Permalink
mingw64 ci: install a fresh mingw64 and use it
Browse files Browse the repository at this point in the history
This is far from perfect but should let us become less accustomed to
red crosses due to mingw64.

The installation of mingw64 is slow, hopefully a future change will
let us use the github workflow caching mechanism.
  • Loading branch information
tonycoz committed Jul 12, 2023
1 parent 48ac898 commit 34b75d7
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -521,27 +521,18 @@ jobs:
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v3
- name: Set up Perl build environment
run: |
# skip installing perl if it is already installed.
if (!(Test-Path "C:\strawberry\perl\bin")) {
choco install strawberryperl
}
echo @"
C:\strawberry\c\bin
C:\strawberry\perl\site\bin
C:\strawberry\perl\bin
"@ |
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install mingw-64
uses: egor-tensin/setup-mingw@v2
- name: Host perl -V
run: perl -V
run: |
perl -V
- name: gcc --version
run: gcc --version
- name: Build
shell: cmd
run: |
cd win32
gmake CCHOME=C:\strawberry\c CFG=Debug -f GNUMakefile -j2
gmake CCHOME=C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64 CFG=Debug -f GNUMakefile -j2
- name: Show Config
shell: cmd
run: |
Expand All @@ -552,7 +543,7 @@ jobs:
run: |
cd win32
set HARNESS_OPTIONS=j2
gmake CCHOME=C:\strawberry\c CFG=Debug -f GNUMakefile test
gmake CCHOME=C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64 CFG=Debug -f GNUMakefile test
# _
# ___ _ _ __ ___ _(_)_ __
Expand Down

0 comments on commit 34b75d7

Please sign in to comment.