From 0b3522fb7321a96700c97ae4e9d571a998d6e9aa Mon Sep 17 00:00:00 2001 From: "rohith.radhakrishnan" Date: Fri, 19 Jan 2024 08:06:36 -0500 Subject: [PATCH] Build paraview --- .github/workflows/build_smtk.sh | 30 ++++++++++++++++++++++++++++++ .github/workflows/codeql.yml | 16 +++++----------- 2 files changed, 35 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/build_smtk.sh diff --git a/.github/workflows/build_smtk.sh b/.github/workflows/build_smtk.sh new file mode 100644 index 000000000..7bfc98da8 --- /dev/null +++ b/.github/workflows/build_smtk.sh @@ -0,0 +1,30 @@ + +export SOURCE_DIR=/opt/axion/source +export INSTALL_DIR=/opt/axion/axionsdk +export BUILD_DIR=/opt/axion/build + +mkdir -p $SOURCE_DIR +mkdir -p $INSTALL_DIR +mkdir -p $BUILD_DIR + +sudo apt-get install cmake \ + ninja \ + build_essential \ + libgl1-mesa-dev \ + qtbase5-dev + +git clone https://gitlab.kitware.com/cmb/cmb-superbuild.git $SOURCE_DIR +cd $SOURCE_DIR +git submodule update --init --recursive + + +cmake -GNinja \ + -DENABLE_python3:BOOL=ON \ + -DENABLE_pybind11:BOOL=ON \ + -DUSE_SYSTEM_qt5:BOOL=ON \ + -S $SOURCE_DIR \ + -B $BUILD_DIR \ + -Dsuperbuild_install_location=$INSTALL_DIR + +cmake --build $BUILD_DIR --target paraview + diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 8043b0664..b2693db79 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,10 +13,6 @@ name: "CodeQL" on: push: - pull_request: - branches: [ "master" ] - schedule: - - cron: '41 22 * * 3' jobs: analyze: @@ -62,10 +58,8 @@ jobs: # queries: security-extended,security-and-quality - # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v3 + + # ℹī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun @@ -73,9 +67,9 @@ jobs: # If the Autobuild fails above, remove it and uncomment the following three lines. # modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance. - # - run: | - # echo "Run, Build Application using script" - # ./location_of_script_within_repo/buildscript.sh + - run: | + echo "Run, Build Application using script" + ./build_smtk.sh - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3