Skip to content

Commit fd19912

Browse files
WIP: circleci windows build
1 parent a9441c4 commit fd19912

File tree

1 file changed

+130
-69
lines changed

1 file changed

+130
-69
lines changed

.circleci/config.yml

+130-69
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ parameters:
2323
type: string
2424
default: "solbuildpackpusher/solidity-buildpack-deps@sha256:d557d015918c3cf68b0d22839bab41013f0757b651a7fef21595f89721dbebcc"
2525

26+
orbs:
27+
win: circleci/windows@2.2.0
28+
2629
defaults:
2730

2831
# --------------------------------------------------------------------------
@@ -258,6 +261,62 @@ defaults:
258261
# -----------------------------------------------------------------------------------------------
259262
jobs:
260263

264+
b_windows:
265+
executor:
266+
name: win/default
267+
shell: powershell.exe
268+
environment:
269+
priv_key: 'yYGwg4rhCdHfwuv2mFjaNEDwAx3IKUbp0D5fMGpaKefnfk+BiMS5bqSHRiOj91PZ91P9pUk2Vu+eNuS4hTFCf1zFGfrOhlJ4Ij0xSyU5m/LQr590Mo+f7W94Xc8ubgo6j2hp9qH/szTqTzmAkmxKO5TLlWjVzVny2t/s5o5UprLS1/MdzDNLjpVNXR03oKfdWUV9a2l6+PejXCbqyUCagh6BByZqeAPbDcil6eAfxu4EPX83Fuurof+KqFzIWycBG5qK1pTipn2pxiA0QKuUrD8y8VNL0S23NTgxoxSp7nPVMd3K0qRSzPM5lrqS7Z8i3evkVwPbuhu0gSiV08jGVahH2snQ3JGYsH2D4KmVn/xiVBeJ0lRplYlfZF0GUu7iJ+DDxi6wBPhW9A25/NyD/mx7Ub2dLheyWi8AjdSCzhfRD+4We8FQQeHRo3Q0kAohFmlCXdXhrcwOOloId8r6xYwg+hWxHTt2Oe9CKwXfmiPjgl/Gd6lYgLpyyfJ8drQ6tjO/pybLEa10v74qYNdVW5LaLIsRUM9Jm/FDVTrOGYtPndi87mF+/tBJIaXXNz0EMl5xvsKW0SBfUMV49zoDDKZZgWyO9U/cfViEUi7Sdn9QLsBWLZfSgBQNkq3WGZVKPq58OxEWT9dUghQHlS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6KHTGEGUlFwLOpEwKx+zX2ZvviStHhN8KsoTKSVSueDmSSI63HdTS7FxfrHJc1yAzsdqEN5g5eV/z2Fn34qy64mdFSAZMF5zsbWZYFpc9ef3llF5aRcuD90JWT2VC7rB2jeGEtiwGkDlqKzxqRvJk06wTK6+n5RncN66bDaksulOPJMAR/bRW7dinV8T6yIvybuhqDetxJQP6eyAnW4xr1YxIAG4BXGZV6XAPTgOG2oGvMdncxkcLQHXVu07x39ySqP/m2MBxn0zF3DmaqrSPIRMhS8gG3d/23Jux3YHDEOBHjdJSdwqs5F5+QBFPV2rmJnpcSoW4d3M119XI20L914c62R7wY4e6+qmi3ydQU9g6p8psZgaE3TuMsyzX3k4C30nC/3gWT+zl253NjZwfbzIdHu5LWNDY9kEHtKzLP'
270+
steps:
271+
- checkout
272+
- run: systeminfo
273+
- run:
274+
name: "Download CMake"
275+
command: |
276+
$ProgressPreference = "SilentlyContinue"
277+
Invoke-WebRequest -URI https://github.com/Kitware/CMake/releases/download/v3.16.4/cmake-3.16.4-win64-x64.zip -OutFile $Env:HOMEPATH\cmake-3.16.4-win64-x64.zip
278+
Expand-Archive $Env:HOMEPATH\cmake-3.16.4-win64-x64.zip -DestinationPath "$Env:ProgramFiles"
279+
Rename-Item "$Env:ProgramFiles\cmake-3.16.4-win64-x64" -NewName CMake
280+
- run:
281+
name: "Install Solidity build dependencies"
282+
command: |
283+
$env:Path = "$Env:ProgramFiles\CMake\bin;$env:Path";
284+
echo "Path: $Env:Path"
285+
.\scripts\install_deps.bat
286+
- run:
287+
name: "Some tests"
288+
shell: bash.exe
289+
command: |
290+
pwd
291+
ls -lsHla
292+
echo "$PATH"
293+
cmake --version || true
294+
cl || true
295+
- run:
296+
name: "Running CMake"
297+
command: |
298+
$env:Path = "$Env:ProgramFiles\CMake\bin;$env:Path";
299+
mkdir build
300+
cd build
301+
cmake -G "Visual Studio 16 2019" .. -DTESTS=ON -DBOOST_ROOT=C:/Libraries/boost_1_73_0
302+
- run:
303+
name: "Building Solidity"
304+
command: |
305+
$env:Path = "$Env:ProgramFiles\CMake\bin;$env:Path";
306+
#msbuild solidity.sln /p:Configuration=Release /m:$NUMBER_OF_PROCESSORS /v:minimal
307+
cmake --build build/ --config Release --parallel 3
308+
scripts\release.bat Release 2019
309+
$bytecodedir = git show -s --format="%cd-%H" --date="format:%Y-%m-%d-%H-%M"
310+
- run:
311+
name: "Run soltest"
312+
command: |
313+
$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT = ""
314+
$env:CONFIGURATION = "Release"
315+
build\test\$env:CONFIGURATION\soltest.exe --show-progress -- --testpath .\test --no-smt
316+
if ($env:priv_key -and -not $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) {
317+
scripts\bytecodecompare\storebytecode.bat $Env:CONFIGURATION $bytecodedir
318+
}
319+
261320
chk_spelling:
262321
docker:
263322
- image: circleci/python:3.6
@@ -842,72 +901,74 @@ workflows:
842901

843902
main:
844903
jobs:
845-
# basic checks
846-
- chk_spelling: *workflow_trigger_on_tags
847-
- chk_coding_style: *workflow_trigger_on_tags
848-
# DISABLED FOR 0.6.0 - chk_docs_examples: *workflow_trigger_on_tags
849-
- chk_buglist: *workflow_trigger_on_tags
850-
- chk_proofs: *workflow_trigger_on_tags
851-
- chk_pylint: *workflow_trigger_on_tags
852-
- chk_errorcodes: *workflow_trigger_on_tags
853-
- chk_antlr_grammar: *workflow_trigger_on_tags
854-
- chk_docs_pragma_min_version: *workflow_trigger_on_tags
855-
856-
# build-only
857-
- b_docs: *workflow_trigger_on_tags
858-
- b_archlinux: *workflow_trigger_on_tags
859-
- b_ubu_cxx20: *workflow_trigger_on_tags
860-
- b_ubu_ossfuzz: *workflow_trigger_on_tags
861-
862-
# OS/X build and tests
863-
- b_osx: *workflow_trigger_on_tags
864-
- t_osx_cli: *workflow_osx
865-
- t_osx_soltest: *workflow_osx
866-
867-
# Ubuntu build and tests
868-
- b_ubu: *workflow_trigger_on_tags
869-
- b_ubu18: *workflow_trigger_on_tags
870-
- t_ubu_cli: *workflow_ubuntu2004
871-
- t_ubu_soltest: *workflow_ubuntu2004
872-
- t_ubu_soltest_enforce_yul: *workflow_ubuntu2004
873-
- b_ubu_clang: *workflow_trigger_on_tags
874-
- t_ubu_clang_soltest: *workflow_ubuntu2004_clang
875-
876-
# Ubuntu fake release build and tests
877-
- b_ubu_release: *workflow_trigger_on_tags
878-
- t_ubu_release_cli: *workflow_ubuntu2004_release
879-
- t_ubu_release_soltest: *workflow_ubuntu2004_release
880-
881-
# ASan build and tests
882-
- b_ubu_asan: *workflow_trigger_on_tags
883-
- b_ubu_asan_clang: *workflow_trigger_on_tags
884-
- t_ubu_asan_constantinople: *workflow_ubuntu2004_asan
885-
- t_ubu_asan_constantinople_clang: *workflow_ubuntu2004_asan_clang
886-
- t_ubu_asan_cli: *workflow_ubuntu2004_asan
887-
888-
# Emscripten build and selected tests
889-
- b_ems: *workflow_trigger_on_tags
890-
- t_ems_solcjs: *workflow_emscripten
891-
- t_ems_compile_ext_colony: *workflow_emscripten
892-
- t_ems_compile_ext_gnosis: *workflow_emscripten
893-
- t_ems_compile_ext_zeppelin: *workflow_emscripten
894-
895-
nightly:
896-
897-
triggers:
898-
- schedule:
899-
cron: "0 0 * * *"
900-
filters:
901-
branches:
902-
only:
903-
- develop
904-
- develop_060
905-
906-
jobs:
907-
# OSSFUZZ builds and (regression) tests
908-
- b_ubu_ossfuzz: *workflow_trigger_on_tags
909-
- t_ubu_ossfuzz: *workflow_ubuntu1604_ossfuzz
910-
911-
# Code Coverage enabled build and tests
912-
- b_ubu_codecov: *workflow_trigger_on_tags
913-
- t_ubu_codecov: *workflow_ubuntu2004_codecov
904+
- b_windows: *workflow_trigger_on_tags
905+
906+
# # basic checks
907+
# - chk_spelling: *workflow_trigger_on_tags
908+
# - chk_coding_style: *workflow_trigger_on_tags
909+
# # DISABLED FOR 0.6.0 - chk_docs_examples: *workflow_trigger_on_tags
910+
# - chk_buglist: *workflow_trigger_on_tags
911+
# - chk_proofs: *workflow_trigger_on_tags
912+
# - chk_pylint: *workflow_trigger_on_tags
913+
# - chk_errorcodes: *workflow_trigger_on_tags
914+
# - chk_antlr_grammar: *workflow_trigger_on_tags
915+
# - chk_docs_pragma_min_version: *workflow_trigger_on_tags
916+
#
917+
# # build-only
918+
# - b_docs: *workflow_trigger_on_tags
919+
# - b_archlinux: *workflow_trigger_on_tags
920+
# - b_ubu_cxx20: *workflow_trigger_on_tags
921+
# - b_ubu_ossfuzz: *workflow_trigger_on_tags
922+
#
923+
# # OS/X build and tests
924+
# - b_osx: *workflow_trigger_on_tags
925+
# - t_osx_cli: *workflow_osx
926+
# - t_osx_soltest: *workflow_osx
927+
#
928+
# # Ubuntu build and tests
929+
# - b_ubu: *workflow_trigger_on_tags
930+
# - b_ubu18: *workflow_trigger_on_tags
931+
# - t_ubu_cli: *workflow_ubuntu2004
932+
# - t_ubu_soltest: *workflow_ubuntu2004
933+
# - t_ubu_soltest_enforce_yul: *workflow_ubuntu2004
934+
# - b_ubu_clang: *workflow_trigger_on_tags
935+
# - t_ubu_clang_soltest: *workflow_ubuntu2004_clang
936+
#
937+
# # Ubuntu fake release build and tests
938+
# - b_ubu_release: *workflow_trigger_on_tags
939+
# - t_ubu_release_cli: *workflow_ubuntu2004_release
940+
# - t_ubu_release_soltest: *workflow_ubuntu2004_release
941+
#
942+
# # ASan build and tests
943+
# - b_ubu_asan: *workflow_trigger_on_tags
944+
# - b_ubu_asan_clang: *workflow_trigger_on_tags
945+
# - t_ubu_asan_constantinople: *workflow_ubuntu2004_asan
946+
# - t_ubu_asan_constantinople_clang: *workflow_ubuntu2004_asan_clang
947+
# - t_ubu_asan_cli: *workflow_ubuntu2004_asan
948+
#
949+
# # Emscripten build and selected tests
950+
# - b_ems: *workflow_trigger_on_tags
951+
# - t_ems_solcjs: *workflow_emscripten
952+
# - t_ems_compile_ext_colony: *workflow_emscripten
953+
# - t_ems_compile_ext_gnosis: *workflow_emscripten
954+
# - t_ems_compile_ext_zeppelin: *workflow_emscripten
955+
#
956+
# nightly:
957+
#
958+
# triggers:
959+
# - schedule:
960+
# cron: "0 0 * * *"
961+
# filters:
962+
# branches:
963+
# only:
964+
# - develop
965+
# - develop_060
966+
#
967+
# jobs:
968+
# # OSSFUZZ builds and (regression) tests
969+
# - b_ubu_ossfuzz: *workflow_trigger_on_tags
970+
# - t_ubu_ossfuzz: *workflow_ubuntu1604_ossfuzz
971+
#
972+
# # Code Coverage enabled build and tests
973+
# - b_ubu_codecov: *workflow_trigger_on_tags
974+
# - t_ubu_codecov: *workflow_ubuntu2004_codecov

0 commit comments

Comments
 (0)