From 697e16563baa43dab4e71f9e87b0b4a001781d6d Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Tue, 2 Apr 2024 15:24:32 -0400 Subject: [PATCH] ENH: Switch to host build (wip) --- .github/workflows/ci.yml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 67f6f1e608..60f2554038 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,19 +17,31 @@ permissions: jobs: build: - name: Build CTK runs-on: ubuntu-latest - container: - image: slicer/buildenv-qt5-centos7:latest steps: - uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 - - name: "Build Slicer" + - name: Setup cmake + uses: jwlawson/actions-setup-cmake@v1.14 + with: + cmake-version: "3.16.3" + + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: "5.15.2" + arch: "gcc_64" + + - name: Configure CTK run: | - mkdir /usr/src/CTK-build - cd /usr/src/CTK-build + cmake --version cmake \ -DCTK_QT_VERSION:STRING=5 \ -DCTK_ENABLE_Widgets:BOOL=ON \ - ../CTK - make -j4 + -B CTK-build -S . + cat CTK-build/CMakeCache.txt | grep ^Qt5_DIR + + - name: Build CTK + run: | + cmake \ + --build CTK-build -- -j4