Skip to content

Commit

Permalink
[ci] Windows: GCC 10 from winlibs and PYTHONIOENCODING=utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
rleh committed Dec 19, 2020
1 parent c64082b commit 0bebd2e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/windows_armcortexm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on: [pull_request]
jobs:
windows_armcortexm:
runs-on: windows-2019
#env:
# PYTHONIOENCODING: "utf-8"
env:
PYTHONIOENCODING: "utf-8"

steps:

Expand Down
23 changes: 9 additions & 14 deletions .github/workflows/windows_hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on: [pull_request]
jobs:
windows_hosted:
runs-on: windows-2019
#env:
# PYTHONIOENCODING: "utf-8"
env:
PYTHONIOENCODING: "utf-8"

steps:

Expand All @@ -23,24 +23,19 @@ jobs:
run: |
pip install --user modm scons future
- name: Download MinGW installer
- name: Download GCC for Windows
run: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -OutFile mingw-get-0.6.3.zip https://acc.dl.osdn.jp/mingw/68260/mingw-get-0.6.3-mingw32-pre-20170905-1-bin.zip
Invoke-WebRequest -OutFile winlibs-gcc.zip https://github.com/brechtsanders/winlibs_mingw/releases/download/10.2.0-11.0.0-9.0.0-r5/winlibs-x86_64-posix-seh-gcc-10.2.0-mingw-w64-8.0.0-r5.zip
- name: Unpack MinGW installer
- name: Unpack GCC for Windows
shell: powershell
run: |
Add-Type -Assembly "System.IO.Compression.Filesystem"
[System.IO.Compression.ZipFile]::ExtractToDirectory("mingw-get-0.6.3.zip", "C:\mingw-get")
dir C:\mingw-get
echo "C:\mingw-get\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
rm mingw-get-0.6.3.zip
- name: Install MinGW toolchains
shell: powershell
run: |
mingw-get install gcc g++ mingw32-make
[System.IO.Compression.ZipFile]::ExtractToDirectory("winlibs-gcc.zip", "C:\winlibs-gcc")
dir C:\winlibs-gcc
dir C:\winlibs-gcc\mingw64
echo "C:\winlibs-gcc\mingw64\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Show lbuild and gcc version
run: |
Expand Down
5 changes: 5 additions & 0 deletions src/modm/platform/core/cortex/assert.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ modm_assert_report(_modm_assertion_info *cinfo)
}
}

// Mingw64 :facepalm;
#if defined(__MINGW64__) && !defined(__clang__)
#define PRIuPTR "I64u"
#endif

modm_weak
void modm_abandon(const modm::AssertionInfo &info)
{
Expand Down

0 comments on commit 0bebd2e

Please sign in to comment.