Skip to content

Commit

Permalink
Merge pull request #2611 from GMLC-TDC/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
phlptp authored Feb 7, 2024
2 parents 2b0d041 + 4f984c6 commit a818def
Show file tree
Hide file tree
Showing 691 changed files with 15,989 additions and 8,338 deletions.
4 changes: 2 additions & 2 deletions .ci/.drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ trigger:
- refs/heads/main
- refs/heads/develop
- refs/heads/helics2
- 'refs/pull/**'
- 'refs/tags/**'
- "refs/pull/**"
- "refs/tags/**"
50 changes: 25 additions & 25 deletions .ci/azure-pipelines-daily.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
trigger: none
pr: none
schedules:
- cron: '0 10 * * *'
- cron: "0 10 * * *"
displayName: Daily late night PST (GMT-8)
branches:
include:
Expand All @@ -12,14 +12,14 @@ jobs:
strategy:
matrix:
all-tests:
containerImage: 'helics/buildenv:ubuntu20.04-default-builder'
test_config: 'daily'
containerImage: "helics/buildenv:ubuntu20.04-default-builder"
test_config: "daily"
zmq-subproject:
containerImage: 'helics/buildenv:ubuntu20.04-default-builder'
test_config: 'ci'
containerImage: "helics/buildenv:ubuntu20.04-default-builder"
test_config: "ci"
zmq_subproject: true
pool:
vmImage: 'ubuntu-latest'
vmImage: "ubuntu-latest"
container: $[ variables['containerImage'] ]
timeoutInMinutes: 90

Expand All @@ -30,27 +30,27 @@ jobs:
mkdir -p build && cd build
../scripts/ci-build.sh
env:
MAKEFLAGS: '-j 4'
CMAKE_GENERATOR: 'Unix Makefiles'
USE_SWIG: 'true'
MAKEFLAGS: "-j 4"
CMAKE_GENERATOR: "Unix Makefiles"
USE_SWIG: "true"
ZMQ_SUBPROJECT: $[variables['zmq_subproject']]
ZMQ_FORCE_SUBPROJECT: $[variables['zmq_subproject']]
displayName: 'Build HELICS'
displayName: "Build HELICS"
- bash: ../scripts/run-ci-tests.sh "$TEST_CONFIG"
env:
TEST_CONFIG: $[variables['test_config']]
workingDirectory: 'build'
displayName: 'Test HELICS'
workingDirectory: "build"
displayName: "Test HELICS"

- job: Windows
strategy:
matrix:
VS2022-64bit:
imageName: 'windows-2022'
langArch: 'x64'
vsArch: 'x64'
extraFlags: ''
imageName: "windows-2022"
langArch: "x64"
vsArch: "x64"
extraFlags: ""
pool:
vmImage: $(imageName)
variables:
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
- task: CMake@1
inputs:
cmakeArgs: -A $(vsArch) -DHELICS_ENABLE_SWIG=ON -DHELICS_BUILD_CXX_SHARED_LIB=ON -DHELICS_ENABLE_PACKAGE_BUILD=ON -DHELICS_BUILD_TESTS=ON -DHELICS_BUILD_EXAMPLES=ON -DHELICS_DISABLE_VCPKG=ON $(extraFlags) ..
displayName: 'Configure HELICS'
displayName: "Configure HELICS"
condition: eq( variables['Agent.OS'], 'Windows_NT' )

# - task: CMake@1
Expand All @@ -102,7 +102,7 @@ jobs:
# Build HELICS
# -----------------------
- bash: cmake --build . --config Release
displayName: 'Build HELICS'
displayName: "Build HELICS"
workingDirectory: build

# -----------------------
Expand All @@ -112,29 +112,29 @@ jobs:
cpack_dir="$(which cmake)"
cpack_dir="${cpack_dir%/cmake}"
"${cpack_dir}/cpack" -G "ZIP" -C Release -B "$PWD/installer-output"
displayName: 'Package HELICS'
displayName: "Package HELICS"
workingDirectory: build
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)/build/installer-output'
contents: '*.exe'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
sourceFolder: "$(Build.SourcesDirectory)/build/installer-output"
contents: "*.exe"
TargetFolder: "$(Build.ArtifactStagingDirectory)"

- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
pathtoPublish: "$(Build.ArtifactStagingDirectory)"
artifactName: installer

# -----------------------
# Test HELICS
# -----------------------
- bash: ctest --output-on-failure --timeout 480 -C Release -L "Continuous"
displayName: 'Test HELICS'
displayName: "Test HELICS"
workingDirectory: build

# Packaging tests
- bash: ctest --output-on-failure --timeout 200 -C Release -L "PackagingFast"
displayName: 'Test HELICS packaging'
displayName: "Test HELICS packaging"
workingDirectory: build

# For debugging, can get build folder contents by adding PublishBuildArtifacts task and set pathtoPublish: '$(Build.SourcesDirectory)/build'
114 changes: 57 additions & 57 deletions .ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,28 @@ jobs:
strategy:
matrix:
ubuntuDefault:
containerImage: 'helics/buildenv:ubuntu20.04-default-builder'
test_config: 'ci'
use_mpi: 'true'
encrypted: 'true'
containerImage: "helics/buildenv:ubuntu20.04-default-builder"
test_config: "ci"
use_mpi: "true"
encrypted: "true"
gcc8:
containerImage: 'helics/buildenv:gcc8-builder'
test_config: 'ci'
use_mpi: 'true'
encrypted: 'true'
containerImage: "helics/buildenv:gcc8-builder"
test_config: "ci"
use_mpi: "true"
encrypted: "true"
clang13:
containerImage: 'helics/buildenv:clang13-builder'
test_config: 'ci'
use_mpi: ''
encrypted: ''
containerImage: "helics/buildenv:clang13-builder"
test_config: "ci"
use_mpi: ""
encrypted: ""
clang7:
containerImage: 'helics/buildenv:clang7-builder'
test_config: 'ci'
use_mpi: ''
encrypted: ''
containerImage: "helics/buildenv:clang7-builder"
test_config: "ci"
use_mpi: ""
encrypted: ""

pool:
vmImage: 'ubuntu-latest'
vmImage: "ubuntu-latest"
container: $[ variables['containerImage'] ]
timeoutInMinutes: 60

Expand All @@ -44,31 +44,31 @@ jobs:
mkdir -p build && cd build
../scripts/ci-build.sh
env:
MAKEFLAGS: '-j 4'
CMAKE_GENERATOR: 'Unix Makefiles'
USE_SWIG: 'true'
MAKEFLAGS: "-j 4"
CMAKE_GENERATOR: "Unix Makefiles"
USE_SWIG: "true"
USE_MPI: $[variables['use_mpi']]
ENCRYPTED: $[variables['encrypted']]
ZMQ_SUBPROJECT: $[variables['zmq_subproject']]
ZMQ_FORCE_SUBPROJECT: $[variables['zmq_subproject']]
displayName: 'Build HELICS'
displayName: "Build HELICS"
- bash: ../scripts/run-ci-tests.sh "$TEST_CONFIG"
env:
TEST_CONFIG: $[variables['test_config']]
workingDirectory: 'build'
displayName: 'Test HELICS'
workingDirectory: "build"
displayName: "Test HELICS"

- job: macOS
strategy:
matrix:
XCode-latest:
test_config: 'ci'
vmImage: 'macOS-12'
test_config: "ci"
vmImage: "macOS-13"
XCode-oldest:
test_config: 'ci'
vmImage: 'macOS-11'
xcode_path: '/Applications/Xcode_11.7.app'
test_config: "ci"
vmImage: "macOS-12"
xcode_path: "/Applications/Xcode_13.2.1.app"
pool:
vmImage: $[ variables['vmImage'] ]
timeoutInMinutes: 60
Expand All @@ -77,46 +77,46 @@ jobs:
- bash: sudo xcode-select --switch "${XCODE_PATH}/Contents/Developer"
env:
XCODE_PATH: $[variables['xcode_path']]
displayName: 'Set XCode Path'
displayName: "Set XCode Path"
condition: ne(variables['xcode_path'],'')
- bash: |
brew install swig zeromq boost
displayName: 'Install dependencies'
displayName: "Install dependencies"
- bash: |
unset VCPKG_ROOT
source scripts/setup-helics-ci-options.sh
mkdir -p build && cd build
../scripts/ci-build.sh
env:
MAKEFLAGS: '-j 4'
CMAKE_GENERATOR: 'Unix Makefiles'
USE_SWIG: 'true'
displayName: 'Build HELICS'
MAKEFLAGS: "-j 4"
CMAKE_GENERATOR: "Unix Makefiles"
USE_SWIG: "true"
displayName: "Build HELICS"
- bash: ../scripts/run-ci-tests.sh "$TEST_CONFIG"
env:
TEST_CONFIG: $[variables['test_config']]
workingDirectory: 'build'
displayName: 'Test HELICS'
workingDirectory: "build"
displayName: "Test HELICS"

- job: Windows
strategy:
matrix:
VS2019-32bit:
imageName: 'windows-2019'
langArch: 'x86'
vsArch: 'Win32'
extraFlags: '-DHELICS_DISABLE_WEBSERVER=ON'
imageName: "windows-2019"
langArch: "x86"
vsArch: "Win32"
extraFlags: "-DHELICS_DISABLE_WEBSERVER=ON"
VS2019-64bit:
imageName: 'windows-2019'
langArch: 'x64'
vsArch: 'x64'
extraFlags: ''
imageName: "windows-2019"
langArch: "x64"
vsArch: "x64"
extraFlags: ""
VS2022-64bit:
imageName: 'windows-2022'
langArch: 'x64'
vsArch: 'x64'
extraFlags: '-DCMAKE_CXX_STANDARD=20'
imageName: "windows-2022"
langArch: "x64"
vsArch: "x64"
extraFlags: "-DCMAKE_CXX_STANDARD=20"

pool:
vmImage: $(imageName)
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
- task: CMake@1
inputs:
cmakeArgs: -A $(vsArch) -DHELICS_ENABLE_SWIG=ON -DHELICS_BUILD_CXX_SHARED_LIB=ON -DHELICS_ENABLE_PACKAGE_BUILD=ON -DHELICS_BUILD_TESTS=ON -DHELICS_BUILD_EXAMPLES=ON -DHELICS_DISABLE_VCPKG=ON $(extraFlags) ..
displayName: 'Configure HELICS'
displayName: "Configure HELICS"
condition: eq( variables['Agent.OS'], 'Windows_NT' )

# - task: CMake@1
Expand All @@ -170,7 +170,7 @@ jobs:
# Build HELICS
# -----------------------
- bash: cmake --build . --config Release
displayName: 'Build HELICS'
displayName: "Build HELICS"
workingDirectory: build

# -----------------------
Expand All @@ -180,30 +180,30 @@ jobs:
cpack_dir="$(which cmake)"
cpack_dir="${cpack_dir%/cmake}"
"${cpack_dir}/cpack" -G "NSIS" -C Release -B "$PWD/installer-output"
displayName: 'Package HELICS'
displayName: "Package HELICS"
workingDirectory: build
- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)/build/installer-output'
contents: '*.exe'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
sourceFolder: "$(Build.SourcesDirectory)/build/installer-output"
contents: "*.exe"
TargetFolder: "$(Build.ArtifactStagingDirectory)"

- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
pathtoPublish: "$(Build.ArtifactStagingDirectory)"
artifactName: installer

# -----------------------
# Test HELICS
# -----------------------
- bash: ctest --output-on-failure --timeout 440 -C Release -L "Continuous"
displayName: 'Test HELICS'
displayName: "Test HELICS"
workingDirectory: build

# Packaging tests
- bash: ctest --output-on-failure --timeout 200 -C Release -L "PackagingFast"
displayName: 'Test HELICS packaging'
displayName: "Test HELICS packaging"
workingDirectory: build

# For debugging, can get build folder contents by adding PublishBuildArtifacts task and set pathtoPublish: '$(Build.SourcesDirectory)/build'
Loading

0 comments on commit a818def

Please sign in to comment.