-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSVC support, CI github Actions windows-2019
#2098
Merged
Merged
Changes from all commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
e22e198
github windows CI
quentin 2b6bdfb
build on Windows with CMake + MSVC
quentin bb44010
format
quentin cca53ed
disable profile test on MSVC
quentin a9499ee
remove imcompatible compiler options
quentin 49b1a41
standard exception handling
quentin 0b06d6c
not constexpr
quentin 17027e2
fix conversion
quentin 0a877ce
intrinsics
quentin aca8b09
intrinsics
quentin 6e977be
intrinsics
quentin c851de9
intrinsics
quentin 3d3ba4c
intrinsics
quentin e10a17d
temporarily restricts CI
quentin bb76b8f
unistd.h
quentin e421a7a
STDERR_FILENO
quentin 5656613
inline functions
quentin 439b16a
fix yaml
quentin 8716501
fix xml
quentin 93b38e8
fix choco packages
quentin 6509c78
dependencies, tests
quentin 7fae615
getopt_long test, fixes
quentin 441f4c6
fix getopt_long_test
quentin 419c29f
ctest command
quentin 195d76e
disable a getopt_long testcase
quentin 78600e7
disable testing with MSVC
quentin 733e4f1
format
quentin e96f23a
add getopt test in CMakeLists
quentin 953e5a2
run CI on push
quentin 93c320f
some fixes
quentin 764ed07
fixes
quentin f0dae0c
fixes
quentin 8be7acf
fixes
quentin adb0088
fixes
quentin daad62b
unistd.h sys/wait.h
quentin cc1952b
SubProcess::execute
quentin 1b52205
fixes
quentin 33f98af
execute new GH action during development
quentin 226b334
fix brie_test
quentin e03630e
fix 32bits disjoint_set_property_test
quentin d0fde5d
restart actions
quentin 34bbefa
include for YieldProcessor
quentin 98ab3f9
replace sh scripts with ruby scripts for portability
quentin fe7f947
more fixes to pass tests
quentin 59d7dfb
generate a json file with compilation flags and options
quentin 89f6fda
lot of fixes for windows
quentin 6e1d3c2
some fixes
quentin 770b758
more fixes
quentin fb335fb
reformat
quentin 11f237a
fix souffle-compile.rb
quentin 22e3983
fix issue with Choco
quentin ffc11f6
clause_visit_in_progress only available in DEBUG
quentin e76b088
remove deprecated derivation of `std::iterator`
quentin 47c440e
fix size_t to int conversion
quentin bf8b9c6
allow more tests to run on Windows
quentin 1bf7a25
OpenMP `reduction` availability
quentin 440aaa2
tests must find libraries
quentin 1d8f279
pass more tests
quentin ea85840
use python scripts
quentin b25fb26
more fixes about loading functor libraries
quentin 91a297e
MSVC preprocessor preserve all whitespaces
quentin 5c6ffa5
cannot use `_Pragma` identifier with MSVC preprocessor
quentin 2720810
reduce MAX_INSTANTIATION_DEPTH
quentin 5d18a8c
disable some syntaxic tests
quentin fc1b3d4
fix non-deterministic behavior in semantics checker
quentin a923a65
`magic_nqueen` stack-overflow in Debug with VS
quentin f4a43e1
formatting
quentin fbe6e17
MacOS fix
quentin fadd3cd
formatting
quentin cca86d3
fix non-deterministic behavior in semantics checker
quentin 93e9240
test `load6` needs zlib
quentin 4d51ba2
test has non-deterministic behavior in semantics checker
quentin 757208a
remove Ruby scripts and generation of old souffle-compile
quentin 431ae10
support tests of SWIG python
quentin a835740
support tests of SWIG Java
quentin f20891e
cancel workflow for VS-CI-Tests
quentin bb55902
remove bash scripts replaced by python scripts
quentin 8813d61
add python3 dependencies
quentin 73ec369
add copyright notice to python scripts
quentin 3bd42ca
copyright notices
quentin 107027b
cleanup
quentin ef5c591
use windows-2019
quentin 2a617f3
fix getopt_long implementation
quentin 5681e85
fixes
quentin 195cff7
formatting
quentin a9a6587
fix ram arithmetic test
quentin 70bb49d
windows CI tests with only 2 jobs
quentin c2eb17c
formatting
quentin 4dff141
formatting
quentin File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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,76 @@ | ||
name: VS-CI-Tests | ||
|
||
on: | ||
# TODO remove me before merge | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
types: [opened, synchronize] | ||
workflow_dispatch: | ||
|
||
env: | ||
CHOCO_CACHE_DIR: "${{ github.workspace }}/choco-cache" | ||
|
||
jobs: | ||
|
||
Windows-CMake-MSVC: | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Dependencies Cache | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-chocolatey | ||
with: | ||
# cache Chocolatey packages to speed-up the deployment. | ||
path: | | ||
${{ env.CHOCO_CACHE_DIR }} | ||
key: windows-${{ hashFiles('choco-packages.config') }} | ||
|
||
# Use Chocolatey to install binary dependencies. | ||
- name: Binary Dependencies (Chocolatey) | ||
run: | | ||
choco config set cacheLocation ${{ env.CHOCO_CACHE_DIR }} | ||
choco install choco-packages.config --no-progress --installargs 'ADD_CMAKE_TO_PATH=""System""' | ||
|
||
# Use vcpkg to install devel library dependencies. | ||
- name: Library Dependencies (vcpkg) | ||
uses: lukka/run-vcpkg@v7 | ||
with: | ||
vcpkgGitCommitId: '3a28333d605f92f8659f3af1137324b2d9886101' | ||
vcpkgTriplet: x64-windows | ||
vcpkgArguments: 'sqlite3 zlib libffi' | ||
|
||
- name: Create Build Directory | ||
working-directory: ${{github.workspace}} | ||
run: mkdir build | ||
|
||
- name: Configure Build | ||
working-directory: ${{github.workspace}} | ||
run: | | ||
$env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Path)\..\.." | ||
Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" | ||
refreshenv | ||
cmake -S . -B build -G "Visual Studio 16 2019" -A x64 "-DCMAKE_TOOLCHAIN_FILE=${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake" -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS=/bigobj -DSOUFFLE_DOMAIN_64BIT=ON -DCMAKE_FIND_LIBRARY_PREFIXES=";lib" -DCMAKE_FIND_LIBRARY_SUFFIXES=".lib;.dll" -DSOUFFLE_USE_CURSES=OFF -DSOUFFLE_USE_ZLIB=ON -DCMAKE_FIND_DEBUG_MODE=FALSE -DSOUFFLE_BASH_COMPLETION=OFF | ||
|
||
- name: Build | ||
working-directory: ${{github.workspace}} | ||
run: cmake --build build --config Release -j4 | ||
|
||
# Run the tests, Visual Studio must be in the environment because cl.exe is required for compiled Souffle. | ||
- name: Check interpreter | ||
working-directory: ${{github.workspace}}/build | ||
shell: cmd | ||
run: | | ||
pushd "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build" & call vcvars64.bat & popd | ||
ctest --output-on-failure --build-config Release --progress -j4 -L interpreted | ||
|
||
- name: Check others | ||
working-directory: ${{github.workspace}}/build | ||
shell: cmd | ||
run: | | ||
pushd "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build" & call vcvars64.bat & popd | ||
ctest --output-on-failure --build-config Release --progress -j2 -LE interpreted | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="winflexbison3"/> | ||
<package id="sqlite"/> | ||
<package id="cmake" version="3.21.3"/> | ||
</packages> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to be removed before merge