Skip to content

Commit d291d37

Browse files
committed
CI: "Fake" a cross-compilation for one of the Ubuntu runners.
When cross-compiling, some files (notably the JIT package generator of GraphBLAS) are built in a different order and with different commands than normally. Setting CMAKE_SYSTEM_NAME to the host system name doesn't actually lead to a cross-compilation. But it should trigger the build path that would also be used for an actual cross-compilation.
1 parent 5966e4b commit d291d37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ jobs:
7979
-DCMAKE_CUDA_COMPILER_LAUNCHER="ccache"
8080
openmp: with
8181
link: static
82+
# "Fake" a cross-compilation to exercise that build system path
8283
link-cmake-flags:
8384
-DBUILD_SHARED_LIBS=OFF
8485
-DBUILD_STATIC_LIBS=ON
86+
-DCMAKE_SYSTEM_NAME="Linux"
8587

8688
env:
8789
CC: ${{ matrix.cc }}

0 commit comments

Comments
 (0)