Skip to content

More workflow

More workflow #1156

Workflow file for this run

name: Dev With VTK
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
ubuntu-openblas-vtk-dev:
runs-on: ubuntu-22.04
timeout-minutes: 60
steps:
- name: Clone
uses: actions/checkout@v3
- name: Install VTK
run: |
wget -q https://github.com/TLCFEM/prebuilds/releases/download/latest/VTK-9.2.6-linux.tar.gz
tar xf VTK-9.2.6-linux.tar.gz
- name: Golang
uses: actions/setup-go@v3
- name: Compile
run: |
go build Checker/updater.go
sudo apt-get update && sudo apt-get install mesa-common-dev mesa-utils freeglut3-dev libglvnd-dev dpkg-dev xz-utils
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_MULTITHREAD=ON -DUSE_HDF5=ON -DUSE_EXTERNAL_VTK=ON -DVTK_DIR=./lib/cmake/vtk-9.2/ -DCMAKE_INSTALL_PREFIX=suanPan-linux-openblas-vtk .
make install -j"$(nproc)"
make package
- name: Test
run: |
export LD_LIBRARY_PATH=/home/runner/work/suanPan/suanPan/suanPan-linux-openblas-vtk/lib
./suanPan-linux-openblas-vtk/bin/suanPan -v
- uses: actions/upload-artifact@v3
with:
name: suanPan-3.2.0-1.x86_64.deb
path: suanPan-3.2.0-1.x86_64.deb
macos-openblas-vtk-dev:
runs-on: macos-11
timeout-minutes: 100
steps:
- name: Clone
uses: actions/checkout@v3
- name: Install VTK
run: |
wget -q https://github.com/TLCFEM/prebuilds/releases/download/latest/VTK-9.2.6-macos.tar.gz
tar xf VTK-9.2.6-macos.tar.gz
- name: Golang
uses: actions/setup-go@v3
- name: Compile
run: |
export CC=$(brew --prefix llvm@15)/bin/clang && export CXX=$(brew --prefix llvm@15)/bin/clang++ && export FC=gfortran-11
go build Checker/updater.go
brew install glfw glew
cmake -DCMAKE_C_STANDARD_INCLUDE_DIRECTORIES=$(brew --prefix libomp)/include -DCMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES=$(brew --prefix libomp)/include -DCMAKE_Fortran_STANDARD_INCLUDE_DIRECTORIES=$(brew --prefix libomp)/include -DCMAKE_BUILD_TYPE=Debug -DBUILD_MULTITHREAD=ON -DUSE_HDF5=ON -DUSE_EXTERNAL_VTK=ON -DVTK_DIR=./lib/cmake/vtk-9.2/ -DCMAKE_INSTALL_PREFIX=suanPan-macos-openblas-vtk .
make install -j4
- name: Test
run: |
export DYLD_LIBRARY_PATH=/Users/runner/work/suanPan/suanPan/suanPan-macos-openblas-vtk/lib/
./suanPan-macos-openblas-vtk/bin/suanPan -v
windows-openblas-vtk-dev:
runs-on: windows-2022
timeout-minutes: 100
steps:
- name: Clone
uses: actions/checkout@v3
- name: Install VTK
run: |
C:/msys64/usr/bin/wget.exe -q https://github.com/TLCFEM/prebuilds/releases/download/latest/VTK-9.2.6-win.7z
7z x VTK-9.2.6-win.7z
- name: Golang
uses: actions/setup-go@v3
- name: Compile
run: |
go build Checker/updater.go
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_MULTITHREAD=ON -DUSE_HDF5=ON -DUSE_EXTERNAL_VTK=ON -DVTK_DIR=D:/a/suanPan/suanPan/lib/cmake/vtk-9.2/ -DCMAKE_INSTALL_PREFIX=suanPan-win-openblas-vtk .
cmake --build . --target INSTALL --config Release -j 4
- name: Pack
run: |
cp updater.exe suanPan-win-openblas-vtk/bin
cd suanPan-win-openblas-vtk/bin
7z a ../../suanPan-win-openblas-vtk.7z ./*
./suanPan.exe -v
- uses: actions/upload-artifact@v3
with:
name: suanPan-win-openblas-vtk.7z
path: suanPan-win-openblas-vtk.7z
windows-openblas-vtk-no-avx-dev:
runs-on: windows-2022
timeout-minutes: 100
steps:
- name: Clone
uses: actions/checkout@v3
- name: Install VTK
run: |
C:/msys64/usr/bin/wget.exe -q https://github.com/TLCFEM/prebuilds/releases/download/latest/VTK-9.2.6-win.7z
7z x VTK-9.2.6-win.7z
- name: Golang
uses: actions/setup-go@v3
- name: Compile
run: |
go build Checker/updater.go
cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_MULTITHREAD=ON -DUSE_AVX=OFF -DUSE_HDF5=ON -DUSE_EXTERNAL_VTK=ON -DVTK_DIR=D:/a/suanPan/suanPan/lib/cmake/vtk-9.2/ -DCMAKE_INSTALL_PREFIX=suanPan-win-openblas-vtk-no-avx .
cmake --build . --target INSTALL --config Release -j 4
- name: Pack
run: |
cp updater.exe suanPan-win-openblas-vtk-no-avx/bin
cd suanPan-win-openblas-vtk-no-avx/bin
7z a ../../suanPan-win-openblas-vtk-no-avx.7z ./*
./suanPan.exe -v
- uses: actions/upload-artifact@v3
with:
name: suanPan-win-openblas-vtk-no-avx.7z
path: suanPan-win-openblas-vtk-no-avx.7z