Skip to content

Commit 70dfbef

Browse files
authored
Merge pull request #135 from bam241/2022.6
adding 2022.6 version on build workflow
2 parents 8fa7535 + 16bad48 commit 70dfbef

3 files changed

Lines changed: 31 additions & 22 deletions

File tree

.github/workflows/unix_linux.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ jobs:
3232
runs-on: ubuntu-latest
3333
strategy:
3434
matrix:
35-
cubit: [2021.4, 2021.5, 2021.11]
35+
cubit: [2021.4, 2021.5, 2021.11, 2022.4]
3636
os: [ubuntu]
37-
os_version: [20.04, 21.04]
37+
os_version: [20.04, 22.04]
3838
include:
3939
- os: ubuntu
4040
os_version: 18.04
@@ -48,7 +48,7 @@ jobs:
4848
os_version: '10.10' # using a 'string' here as the 0 gets rounded away otherwise
4949
cubit: 2021.11
5050

51-
51+
5252
name: 'Cubit ${{ matrix.cubit }} Build for ${{ matrix.os }} ${{ matrix.os_version }} of Svalinn Plugin'
5353

5454
container:
@@ -89,6 +89,10 @@ jobs:
8989
BASE=Coreform-Cubit-2021.11%2B21637_35609873
9090
CUBIT_BASE_NAME=Coreform-Cubit-2021.11
9191
HDF5_PATH=/usr/local/HDF_Group/HDF5/1.12.0
92+
elif [ "${{ matrix.cubit }}" == "2022.4" ]; then
93+
BASE=Coreform-Cubit-2022.4%2B26186_e1209cf7
94+
CUBIT_BASE_NAME=Coreform-Cubit-2022.4
95+
HDF5_PATH=/usr/local/HDF_Group/HDF5/1.12.0
9296
fi
9397
9498
SUFFIX=Lin64
@@ -116,12 +120,12 @@ jobs:
116120
117121
echo "" >> ${HOME}/.bash_profile
118122
echo "source $GITHUB_WORKSPACE/scripts/unix_share_build.sh" >> $HOME/.bash_profile
119-
123+
120124
- name: Initial setup
121125
shell: bash -l {0}
122126
run: |
123127
${system}_install_prerequisites
124-
128+
125129
- name: Downloading packages
126130
shell: bash -l {0}
127131
run: |
@@ -156,7 +160,7 @@ jobs:
156160
- name: Build plugin
157161
shell: bash -l {0}
158162
run: |
159-
build_plugin
163+
build_plugin
160164
161165
- name: Prepare package
162166
shell: bash -l {0}
@@ -169,8 +173,8 @@ jobs:
169173
with:
170174
name: svalinn-plugin_${{ matrix.os }}-${{ matrix.os_version }}_cubit_${{ matrix.cubit }}.tgz
171175
path: ${{ github.workspace }}/release/svalinn-plugin_${{ matrix.os }}-${{ matrix.os_version }}_cubit_${{ matrix.cubit }}.tgz
172-
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
173-
176+
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
177+
174178
- if: github.event_name == 'release'
175179
name: Upload binaries into the release
176180
uses: svenstaro/upload-release-action@v2

.github/workflows/unix_mac.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ env:
3131

3232
jobs:
3333
main:
34-
runs-on: macos-10.15
34+
runs-on: macos-11
3535
strategy:
3636
matrix:
37-
cubit: [17.1.0, 2021.4, 2021.5, 2021.11]
37+
cubit: [17.1.0, 2021.4, 2021.5, 2021.11, 2022.4]
3838

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

@@ -63,6 +63,10 @@ jobs:
6363
BASE=Coreform-Cubit-2021.11%2B21637_35609873
6464
CUBIT_BASE_NAME=Coreform-Cubit-2021.11
6565
HDF5_PATH=/usr/local/HDF_Group/HDF5/1.12.0
66+
elif [ "${{ matrix.cubit }}" == "2022.4" ]; then
67+
BASE=Coreform-Cubit-2022.4%2B26186_e1209cf7
68+
CUBIT_BASE_NAME=Coreform-Cubit-2022.4
69+
HDF5_PATH=/usr/local/HDF_Group/HDF5/1.12.0
6670
fi
6771
6872
SUFFIX=Mac64
@@ -88,12 +92,12 @@ jobs:
8892
8993
echo "" >> ${HOME}/.bash_profile
9094
echo "source $GITHUB_WORKSPACE/scripts/unix_share_build.sh" >> $HOME/.bash_profile
91-
95+
9296
- name: Initial setup
9397
shell: bash -l {0}
9498
run: |
9599
${system}_install_prerequisites
96-
100+
97101
- name: Downloading packages
98102
shell: bash -l {0}
99103
run: |
@@ -128,7 +132,7 @@ jobs:
128132
- name: Build plugin
129133
shell: bash -l {0}
130134
run: |
131-
build_plugin
135+
build_plugin
132136
133137
- name: Prepare package
134138
shell: bash -l {0}
@@ -141,8 +145,8 @@ jobs:
141145
with:
142146
name: svalinn-plugin_${{env.OS}}_cubit_${{ matrix.cubit }}.tgz
143147
path: ${{ github.workspace }}/release/svalinn-plugin_${{env.OS}}_cubit_${{ matrix.cubit }}.tgz
144-
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
145-
148+
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
149+
146150
- if: github.event_name == 'release'
147151
name: Upload binaries into the release
148152
uses: svenstaro/upload-release-action@v2

scripts/unix_share_build.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function linux_install_prerequisites() {
4949

5050
function setup() {
5151
unset LD_LIBRARY_PATH
52-
52+
5353
echo "Building the Cubit plugin in ${CURRENT}\\${PLUGIN_DIR}"
5454
cd ${CURRENT}
5555
mkdir ${PLUGIN_DIR}
@@ -180,7 +180,7 @@ function mac_setup_cubit() {
180180
hdiutil attach cubit_eula.dmg.cdr -mountpoint /Volumes/Cubit
181181
mv /Volumes/Cubit/*.app /Applications/
182182
rm -rf cubit.dmg
183-
183+
184184
# removing app_loger that seems to not be present in Cubit 2020.2
185185
if [ "${1}" = "2020.2" ]; then #|| [ "$1" == "2021.3" ] || [ "$1" == "2021.4" ]; then
186186
remove_app_logger
@@ -189,7 +189,7 @@ function mac_setup_cubit() {
189189
cd /Applications
190190

191191
# 17.1.0 comes with a separate SDK. It is unclear yet on how it is supposed to be installed and used.
192-
# this is a way to have it working...
192+
# this is a way to have it working...
193193
if [ "$1" == "17.1.0" ] ; then
194194
cd ${CUBIT_PATH}
195195
$SUDO tar -xzf ${FOLDER_PKG}/${CUBIT_SDK_PKG}
@@ -211,11 +211,11 @@ function mac_setup_cubit() {
211211
}
212212

213213
function linux_setup_cubit() {
214-
214+
215215
cd ${FOLDER_PKG}
216216
$SUDO apt-get install -y ./${CUBIT_PKG}
217217

218-
if [ "$1" == "2021.3" ] || [ "$1" == "2021.4" ] || [ "$1" == "2021.5" ] || [ "$1" == "2021.11" ] ; then
218+
if [ "$1" == "2021.3" ] || [ "$1" == "2021.4" ] || [ "$1" == "2021.5" ] || [ "$1" == "2021.11" ] || [ "$1" == "2022.4" ] ; then
219219
return
220220
fi
221221

@@ -230,6 +230,7 @@ function linux_setup_cubit() {
230230
function build_plugin(){
231231
cd ${PLUGIN_ABS_PATH}
232232
cd Cubit-plugin
233+
git config --global --add safe.directory ${GITHUB_WORKSPACE}
233234
git submodule update --init
234235
cd ../
235236
mkdir -pv bld
@@ -285,8 +286,8 @@ function mac_build_plugin_pkg(){
285286

286287
# Copy all needed libraries into current directory
287288
cp -pPv ${PLUGIN_ABS_PATH}/lib/* .
288-
cp /usr/local/opt/szip/lib/libsz.2.dylib .
289-
install_name_tool -change /usr/local/opt/szip/lib/libsz.2.dylib @rpath/libsz.2.dylib libsvalinn_plugin.so
289+
cp /usr/local/opt/libaec/lib/libsz.dylib .
290+
install_name_tool -change /usr/local/opt/libaec/lib/libsz.dylib @rpath/libsz.dylib libsvalinn_plugin.so
290291

291292
# restoring correct RPATH for 17.1 (bin does not exist as it is not shipped with SDK)
292293
if [ "$1" == "17.1.0" ] ; then

0 commit comments

Comments
 (0)