Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cubit 2023.6-dev to build #142

Draft
wants to merge 21 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 8 additions & 20 deletions .github/workflows/unix_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
cubit: [2021.4, 2021.5, 2021.11, 2022.4]
cubit: [2023.6-dev]
os: [ubuntu]
os_version: [20.04, 22.04]
include:
- os: ubuntu
os_version: 18.04
cubit: 17.1.0

- os: debian
os_version: '10.10' # using a 'string' here as the 0 gets rounded away otherwise
cubit: 2021.5

- os: debian
os_version: '10.10' # using a 'string' here as the 0 gets rounded away otherwise
cubit: 2021.11

- os: debian
os_version: '10.10' # using a 'string' here as the 0 gets rounded away otherwise
cubit: 2022.4

os_version: [22.04]

name: 'Cubit ${{ matrix.cubit }} Build for ${{ matrix.os }} ${{ matrix.os_version }} of Svalinn Plugin'

Expand All @@ -75,6 +58,7 @@ jobs:
shell: bash -l {0}
run: |
COREFORM_BASE_URL=https://f002.backblazeb2.com/file/cubit-downloads/Coreform-Cubit/Releases
SUFFIX=Lin64

if [ "${{ matrix.cubit }}" == "17.1.0" ]; then
BASE=Trelis-17.1.0
Expand All @@ -97,9 +81,13 @@ jobs:
BASE=Coreform-Cubit-2022.4%2B26186_e1209cf7
CUBIT_BASE_NAME=Coreform-Cubit-2022.4
HDF5_PATH=/usr/local/HDF_Group/HDF5/1.12.0
elif [ "${{ matrix.cubit }}" == "2023.6-dev" ]; then
COREFORM_BASE_URL=https://f002.backblazeb2.com/file/cubit-downloads/Coreform-Cubit/master
BASE=Coreform-Cubit-2023.6-rc%2B38128
CUBIT_BASE_NAME=Coreform-Cubit-2023.6
HDF5_PATH=/usr/local/HDF_Group/HDF5/1.12.0
fi

SUFFIX=Lin64
EXT=deb
echo "SED=sed" >> $GITHUB_ENV
echo "BUILD_SHARED_LIBS=ON" >> $GITHUB_ENV
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/unix_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: macos-11
strategy:
matrix:
cubit: [17.1.0, 2021.4, 2021.5, 2021.11, 2022.4]
cubit: [17.1.0, 2021.4, 2021.5, 2021.11, 2022.4, 2023.4]

name: 'Cubit ${{ matrix.cubit }} Build for MacOS of Svalinn Plugin'

Expand All @@ -45,6 +45,7 @@ jobs:
shell: bash -l {0}
run: |
COREFORM_BASE_URL=https://f002.backblazeb2.com/file/cubit-downloads/Coreform-Cubit/Releases
EXT=dmg

if [ "${{ matrix.cubit }}" == "17.1.0" ]; then
BASE=Trelis-17.1.0
Expand All @@ -67,10 +68,14 @@ jobs:
BASE=Coreform-Cubit-2022.4%2B26186_e1209cf7
CUBIT_BASE_NAME=Coreform-Cubit-2022.4
HDF5_PATH=/usr/local/HDF_Group/HDF5/1.12.0
elif [ "${{ matrix.cubit }}" == "2023.4" ]; then
BASE=Coreform-Cubit-2023.4%2B36047
CUBIT_BASE_NAME=Coreform-Cubit-2023.4
HDF5_PATH=/usr/local/HDF_Group/HDF5/1.12.0
EXT=pkg
fi

SUFFIX=Mac64
EXT=dmg
echo "SED=gsed" >> $GITHUB_ENV
echo "BUILD_SHARED_LIBS=OFF" >> $GITHUB_ENV
echo "BUILD_STATIC_LIBS=ON" >> $GITHUB_ENV
Expand Down
29 changes: 26 additions & 3 deletions scripts/unix_share_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ function setup_var() {
CUBIT_PATH="/opt/Coreform-Cubit-2021.4"
elif [ "$1" == "2022.4" ] ; then
CUBIT_PATH="/opt/Coreform-Cubit-2022.4"
elif [ "$1" == "2023.6-dev" ] ; then
CUBIT_PATH="/opt/Coreform-Cubit-2023.6"
else
echo "unknown Cubit version"
return 1
Expand Down Expand Up @@ -175,7 +177,19 @@ function remove_app_logger() {
$SUDO $SED -i "s/\/\.\.\/app_logger\;//" CubitUtilConfig.cmake
}

function mac_setup_cubit() {
function mac_setup_cubit () {
if [ "${CUBIT_PKG##*.}" == "pkg" ]; then
mac_pkg_setup_cubit $1
else
mac_dmg_setup_cubit $1
fi
}
function mac_pkg_setup_cubit() {
cd ${FOLDER_PKG}
sudo installer -pkg ${CUBIT_PKG} -target /
}

function mac_dmg_setup_cubit() {
cd ${FOLDER_PKG}
hdiutil convert ${CUBIT_PKG} -format UDTO -o cubit_eula.dmg.cdr
hdiutil attach cubit_eula.dmg.cdr -mountpoint /Volumes/Cubit
Expand Down Expand Up @@ -214,7 +228,15 @@ function linux_setup_cubit() {
cd ${FOLDER_PKG}
$SUDO apt-get install -y ./${CUBIT_PKG}

if [ "$1" == "2021.3" ] || [ "$1" == "2021.4" ] || [ "$1" == "2021.5" ] || [ "$1" == "2021.11" ] || [ "$1" == "2022.4" ] ; then
if [ "$1" == "2023.4" ]; then
cd ${CUBIT_PATH}
mkdir license_server
cd license_server
ln -sf ../bin/libcf_license_server.so .
ln -sf ../bin/libcf_license_renewals.so .
fi

if [ "$1" == "2021.3" ] || [ "$1" == "2021.4" ] || [ "$1" == "2021.5" ] || [ "$1" == "2021.11" ] || [ "$1" == "2022.4" ] || [ "$1" == "2023.6-dev" ] ; then
return
fi

Expand All @@ -236,6 +258,7 @@ function build_plugin(){
cd bld
cmake ../Cubit-plugin -DCMAKE_PREFIX_PATH=${CUBIT_PATH} \
-DCUBIT_ROOT=${CUBIT_PATH} \
-DCubit_DIR=${CUBIT_PATH} \
-DDAGMC_DIR=${PLUGIN_ABS_PATH}/DAGMC \
-DCMAKE_BUILD_TYPE=Release \
$CMAKE_ADDITIONAL_FLAGS \
Expand Down Expand Up @@ -287,7 +310,7 @@ function mac_build_plugin_pkg(){
install_name_tool -change /usr/local/opt/libaec/lib/libsz.dylib @rpath/libsz.dylib libsvalinn_plugin.so

libsz=libsz.dylib
if [ "$1" == "2022.4" ] ; then
if [ "$1" == "2022.4" ] || [ "$1" == "2023.6-dev" ] ; then
libsz=libsz.2.dylib
fi

Expand Down