-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from fastfloat/dlemire/more_tests
Adding more CI tests and adds support for clang under msys2
- Loading branch information
Showing
17 changed files
with
310 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: MinGW32-CI | ||
|
||
on: [push, pull_request] | ||
|
||
# Important: scoop will either install 32-bit GCC or 64-bit GCC, not both. | ||
|
||
# It is important to build static libraries because cmake is not smart enough under Windows/mingw to take care of the path. So | ||
# with a dynamic library, you could get failures due to the fact that the EXE can't find its DLL. | ||
|
||
jobs: | ||
ci: | ||
name: windows-gcc | ||
runs-on: windows-2016 | ||
|
||
env: | ||
CMAKE_GENERATOR: Ninja | ||
CC: gcc | ||
CXX: g++ | ||
|
||
steps: # To reproduce what is below, start a powershell with administrative rights, using scoop *is* a good idea | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/cache@v2 # we cache the scoop setup with 32-bit GCC | ||
id: cache | ||
with: | ||
path: | | ||
C:\ProgramData\scoop | ||
key: scoop32 # static key: should be good forever | ||
- name: Setup Windows # This should almost never run if the cache works. | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
shell: powershell | ||
run: | | ||
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh') | ||
scoop install sudo --global | ||
sudo scoop install git --global | ||
sudo scoop install ninja --global | ||
sudo scoop install cmake --global | ||
sudo scoop install gcc --arch 32bit --global | ||
$env:path | ||
Write-Host 'Everything has been installed, you are good!' | ||
- name: Build and Test 32-bit x86 | ||
shell: powershell | ||
run: | | ||
$ENV:PATH="C:\ProgramData\scoop\shims;C:\ProgramData\scoop\apps\gcc\current\bin;C:\ProgramData\scoop\apps\ninja\current;$ENV:PATH" | ||
mkdir build32 | ||
cd build32 | ||
cmake -DFASTFLOAT_TEST=ON .. | ||
cmake --build . --verbose | ||
ctest -j4 --output-on-failure -R basictest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: MinGW64-CI | ||
|
||
on: [push, pull_request] | ||
|
||
# Important: scoop will either install 32-bit GCC or 64-bit GCC, not both. | ||
|
||
# It is important to build static libraries because cmake is not smart enough under Windows/mingw to take care of the path. So | ||
# with a dynamic library, you could get failures due to the fact that the EXE can't find its DLL. | ||
|
||
jobs: | ||
ci: | ||
name: windows-gcc | ||
runs-on: windows-2016 | ||
|
||
env: | ||
CMAKE_GENERATOR: Ninja | ||
CC: gcc | ||
CXX: g++ | ||
|
||
steps: # To reproduce what is below, start a powershell with administrative rights, using scoop *is* a good idea | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/cache@v2 # we cache the scoop setup with 64-bit GCC | ||
id: cache | ||
with: | ||
path: | | ||
C:\ProgramData\scoop | ||
key: scoop64 # static key: should be good forever | ||
- name: Setup Windows # This should almost never run if the cache works. | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
shell: powershell | ||
run: | | ||
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh') | ||
scoop install sudo --global | ||
sudo scoop install git --global | ||
sudo scoop install ninja --global | ||
sudo scoop install cmake --global | ||
sudo scoop install gcc --arch 64bit --global | ||
$env:path | ||
Write-Host 'Everything has been installed, you are good!' | ||
- name: Build and Test 64-bit x64 | ||
shell: powershell | ||
run: | | ||
$ENV:PATH="C:\ProgramData\scoop\shims;C:\ProgramData\scoop\apps\gcc\current\bin;C:\ProgramData\scoop\apps\ninja\current;$ENV:PATH" | ||
mkdir build64 | ||
cd build64 | ||
cmake -DFASTFLOAT_TEST=ON .. | ||
cmake --build . --verbose | ||
ctest -j4 --output-on-failure -R basictest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: MSYS2-CLANG-CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
windows-mingw: | ||
name: ${{ matrix.msystem }} | ||
runs-on: windows-latest | ||
defaults: | ||
run: | ||
shell: msys2 {0} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- msystem: "MINGW64" | ||
install: mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-clang | ||
type: Release | ||
- msystem: "MINGW32" | ||
install: mingw-w64-i686-cmake mingw-w64-i686-ninja mingw-w64-i686-clang | ||
type: Release | ||
env: | ||
CMAKE_GENERATOR: Ninja | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: msys2/setup-msys2@v2 | ||
with: | ||
update: true | ||
msystem: ${{ matrix.msystem }} | ||
install: ${{ matrix.install }} | ||
- name: Prepare build dir | ||
run: mkdir build | ||
- name: Configure | ||
run: cd build && cmake -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=${{ matrix.type }} -DFASTFLOAT_TEST=ON .. | ||
- name: Build | ||
run: cmake --build build | ||
- name: Run basic tests | ||
run: cd build && ctest --output-on-failure -R basictest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.9.x' | ||
cmake-version: '3.11.x' | ||
- name: Install older compilers | ||
run: | | ||
sudo -E dpkg --add-architecture i386 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: '3.9.x' | ||
cmake-version: '3.11.x' | ||
- name: install older compilers | ||
run: | | ||
sudo -E dpkg --add-architecture i386 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.