Skip to content

Commit

Permalink
add Windows gitlab job
Browse files Browse the repository at this point in the history
  • Loading branch information
upsj committed Jun 26, 2024
1 parent cfa695f commit b28882e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,41 @@ build/icpx/igpu/release/static:
ONEAPI_DEVICE_SELECTOR: "*:gpu"
BUILD_HWLOC: "OFF"

# windows jobs: Release shared
# Note that this is using Powershell, not bash
build/windows/release/shared:
stage: build
script:
- if (Test-Path build) { rm -r -fo build }
- if (Test-Path install) { rm -r -fo install }
- mkdir build
- mkdir install
- cmake -B build -DBUILD_SHARED_LIBS=ON -DGINKGO_BUILD_CUDA=OFF "-DCMAKE_INSTALL_PREFIX=$pwd\install" .
- cmake --build build --config Release -j16
- ctest --test-dir build -C Release --no-tests=error --output-on-failure -j16
- $env:PATH+=";$pwd/install/bin"
- cmake --install build --config Release
- cmake --build build --target test_install --config Release
tags:
- windows

# CUDA
build/windows-cuda/release/shared:
stage: build
script:
- if (Test-Path build) { rm -r -fo build }
- if (Test-Path install) { rm -r -fo install }
- mkdir build
- mkdir install
- cmake -B build -DBUILD_SHARED_LIBS=ON -DGINKGO_BUILD_CUDA=ON "-DCMAKE_INSTALL_PREFIX=$pwd\install" .
- cmake --build build --config Release -j16
- ctest --test-dir build -C Release --no-tests=error --output-on-failure
- $env:PATH+=";$pwd/install/bin"
- cmake --install build --config Release
- cmake --build build --target test_install --config Release
tags:
- windows-cuda

# Job with important warnings as error
warnings:
stage: code_quality
Expand Down

0 comments on commit b28882e

Please sign in to comment.