mirror of https://github.com/nlohmann/json.git
Try old MinGW script (#3892)
* ⚗️ try old MinGW script * ⚗️ add Clang 13, 14, and 15 for Windows * 📝 add Clang version to READMEpull/3920/head
parent
a2f0593649
commit
4c6cde72e5
|
@ -15,38 +15,17 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
mingw:
|
mingw:
|
||||||
runs-on: windows-latest
|
runs-on: windows-2019
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
architecture: [x64, x86]
|
architecture: [x64, x86]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Download MinGW 8.1.0
|
- name: Set up MinGW
|
||||||
run: |
|
uses: egor-tensin/setup-mingw@v2
|
||||||
$headers = @{Authorization = 'Bearer ${{ secrets.GITHUB_TOKEN }}'}
|
with:
|
||||||
$uri = 'https://nuget.pkg.github.com/falbrechtskirchinger/download/mingw/8.1.0/mingw.8.1.0.nupkg'
|
platform: ${{ matrix.architecture }}
|
||||||
Invoke-WebRequest -Uri $uri -Headers $headers -OutFile mingw.8.1.0.nupkg
|
|
||||||
- name: Uninstall MinGW
|
|
||||||
continue-on-error: true
|
|
||||||
run: choco uninstall mingw
|
|
||||||
# Based on egor-tensin/setup-mingw
|
|
||||||
- name: Install MinGW 8.1.0
|
|
||||||
run: |
|
|
||||||
choco install mingw.8.1.0.nupkg ${{ matrix.architecture == 'x86' && '--x86' || '' }}
|
|
||||||
$prefix = "${{ matrix.architecture == 'x64' && 'x86_64-w64-mingw32' || 'i686-w64-mingw32' }}"
|
|
||||||
$mingw = "${{ matrix.architecture == 'x64' && 'mingw64' || 'mingw32' }}"
|
|
||||||
$mingw_install = Join-Path C: ProgramData chocolatey lib mingw tools install
|
|
||||||
$mingw_root = Join-Path $mingw_install $mingw
|
|
||||||
$mingw_bin = Join-Path $mingw_root bin
|
|
||||||
$mingw_lib = Join-Path $mingw_root $prefix lib
|
|
||||||
echo $mingw_bin >> $env:GITHUB_PATH
|
|
||||||
Remove-Item (Join-Path $mingw_lib 'libpthread.dll.a')
|
|
||||||
Remove-Item (Join-Path $mingw_lib 'libwinpthread.dll.a')
|
|
||||||
#- name: Set up MinGW
|
|
||||||
# uses: egor-tensin/setup-mingw@v2
|
|
||||||
# with:
|
|
||||||
# platform: ${{ matrix.architecture }}
|
|
||||||
- name: Run CMake
|
- name: Run CMake
|
||||||
run: cmake -S . -B build -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On
|
run: cmake -S . -B build -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Debug -DJSON_BuildTests=On
|
||||||
- name: Build
|
- name: Build
|
||||||
|
@ -122,7 +101,7 @@ jobs:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
version: [11, 12]
|
version: [11, 12, 13, 14, 15]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
|
@ -1172,8 +1172,12 @@ The following compilers are currently used in continuous integration at [AppVeyo
|
||||||
| Clang 11.0.0 with MSVC-like command-line | Windows-10.0.17763 | GitHub Actions |
|
| Clang 11.0.0 with MSVC-like command-line | Windows-10.0.17763 | GitHub Actions |
|
||||||
| Clang 11.0.0 | Ubuntu 20.04.3 LTS | GitHub Actions |
|
| Clang 11.0.0 | Ubuntu 20.04.3 LTS | GitHub Actions |
|
||||||
| Clang 12.0.0 | Ubuntu 20.04.3 LTS | GitHub Actions |
|
| Clang 12.0.0 | Ubuntu 20.04.3 LTS | GitHub Actions |
|
||||||
|
| Clang 12.0.0 with GNU-like command-line | Windows-10.0.17763 | GitHub Actions |
|
||||||
| Clang 13.0.0 | Ubuntu 20.04.3 LTS | GitHub Actions |
|
| Clang 13.0.0 | Ubuntu 20.04.3 LTS | GitHub Actions |
|
||||||
|
| Clang 13.0.0 with GNU-like command-line | Windows-10.0.17763 | GitHub Actions |
|
||||||
| Clang 14.0.0 | Ubuntu 20.04.3 LTS | GitHub Actions |
|
| Clang 14.0.0 | Ubuntu 20.04.3 LTS | GitHub Actions |
|
||||||
|
| Clang 14.0.0 with GNU-like command-line | Windows-10.0.17763 | GitHub Actions |
|
||||||
|
| Clang 15.0.0 with GNU-like command-line | Windows-10.0.17763 | GitHub Actions |
|
||||||
| Clang 15.0.4 | Ubuntu 20.04.3 LTS | GitHub Actions |
|
| Clang 15.0.4 | Ubuntu 20.04.3 LTS | GitHub Actions |
|
||||||
| Clang 16.0.0 (16.0.0-++20221031071727+500876226c60-1~exp1~20221031071831.439) | Ubuntu 20.04.3 LTS | GitHub Actions |
|
| Clang 16.0.0 (16.0.0-++20221031071727+500876226c60-1~exp1~20221031071831.439) | Ubuntu 20.04.3 LTS | GitHub Actions |
|
||||||
| GCC 4.8.5 (Ubuntu 4.8.5-4ubuntu2) | Ubuntu 20.04.3 LTS | GitHub Actions |
|
| GCC 4.8.5 (Ubuntu 4.8.5-4ubuntu2) | Ubuntu 20.04.3 LTS | GitHub Actions |
|
||||||
|
|
Loading…
Reference in New Issue