Skip to content

Commit

Permalink
Add install dir
Browse files Browse the repository at this point in the history
  • Loading branch information
rohith-radhakrishnan18 committed Jan 19, 2024
1 parent 71c81fa commit 79f3389
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 36 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build_pv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

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

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 \
-DDEVELOPER_MODE_smtk:BOOL=ON \

cmake --build $BUILD_DIR

36 changes: 1 addition & 35 deletions .github/workflows/build_smtk.sh
Original file line number Diff line number Diff line change
@@ -1,35 +1 @@

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 update
sudo apt install cmake \
ninja-build \
build-essential \
libgl1-mesa-dev \
qtbase5-dev \
libqt5svg5-dev \
qtbase5-dev-tools \
libqt5x11extras5-dev \
qtxmlpatterns5-dev-tools

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

export INSTALL_DIR=/opt/axion/axionsdk
37 changes: 36 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,44 @@ 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.

- name: Cache AXION SDK
id: cache-axion-sdk
uses: actions/cache@v3
with:
path: |
/opt/axion/axionsdk
/opt/axion/ccache
key: axionsdk-24.00.02
- name: Install AXION SDK
if: steps.cache-axion-sdk.outputs.cache-hit != 'true'
run: |
echo "Install AXION SDK"
sudo apt update
sudo apt install cmake \
ninja-build \
build-essential \
libgl1-mesa-dev \
qtbase5-dev \
libqt5svg5-dev \
qtbase5-dev-tools \
libqt5x11extras5-dev \
qtxmlpatterns5-dev-tools \
libqt5help5
${{ github.workspace }}/.github/workflows/build_pv.sh
- run: |
echo "Run, Build Application using script"
sudo apt update
sudo apt install cmake \
ninja-build \
build-essential \
libgl1-mesa-dev \
qtbase5-dev \
libqt5svg5-dev \
qtbase5-dev-tools \
libqt5x11extras5-dev \
qtxmlpatterns5-dev-tools \
libqt5help5
${{ github.workspace }}/.github/workflows/build_smtk.sh
- name: Perform CodeQL Analysis
Expand Down

0 comments on commit 79f3389

Please sign in to comment.