Set boundary format string storage size to variable #94
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CMake | |
on: [push] | |
jobs: | |
# look into the cache, if the latest PUMI build is cached, load the cache, otherwise build new cache. | |
# upload PUMI build into artifact to be picked up by the next job. | |
install-pumi: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout PUMI | |
id: checkout-pumi | |
run: | | |
cd ${{ runner.workspace }} | |
mkdir opt | |
git clone --recursive --branch v2.2.7 --depth 1 https://github.com/SCOREC/core.git | |
cd core | |
echo "pumi-id=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
- name: Cache PUMI | |
id: cache-pumi | |
uses: actions/cache@v3 | |
with: | |
path: ${{ runner.workspace }}/opt | |
key: ${{ steps.checkout-pumi.outputs.pumi-id }} | |
- if: ${{ steps.cache-pumi.outputs.cache-hit != 'true' }} | |
name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -qq g++ openmpi-bin openmpi-common libopenmpi-dev hdf5-tools libhdf5-openmpi-103 libhdf5-openmpi-dev libnetcdf-dev | |
- if: ${{ steps.cache-pumi.outputs.cache-hit != 'true' }} | |
name: Install PUMI | |
run: | | |
cd ${{ runner.workspace }}/core | |
git submodule update --init | |
mkdir build && cd build | |
cmake .. -DCMAKE_C_COMPILER="`which mpicc`" -DCMAKE_CXX_COMPILER="`which mpiCC`" -DSCOREC_CXX_FLAGS="-O2 -g -Wall -DOMPI_SKIP_MPICXX" -DCMAKE_INSTALL_PREFIX=${{ runner.workspace }}/opt | |
make -j $(nproc) && make install | |
- name: Upload PUMI | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pumi | |
path: ${{ runner.workspace }}/opt | |
# Build pumgen in Release and Debug version | |
build-pumgen: | |
runs-on: ubuntu-latest | |
needs: install-pumi | |
strategy: | |
matrix: | |
build_type: ["Release", "Debug"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -qq g++ openmpi-bin openmpi-common libopenmpi-dev hdf5-tools libhdf5-openmpi-103 libhdf5-openmpi-dev libnetcdf-dev | |
- name: Download PUMI | |
uses: actions/download-artifact@v3 | |
with: | |
name: pumi | |
path: ${{ runner.workspace }}/opt | |
- name: Configure PUMGen | |
working-directory: ${{ github.workspace }} | |
run: | | |
git submodule update --init | |
mkdir build_${{ matrix.build_type}} && cd build_${{ matrix.build_type}} | |
CC=mpicc CXX=mpiCC cmake .. -DCMAKE_PREFIX_PATH=${{ runner.workspace }}/opt -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} | |
- name: Build | |
working-directory: ${{ github.workspace }}/build_${{ matrix.build_type }} | |
run: cmake --build . | |
clang-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: clang-format | |
run: | | |
sudo apt-get update | |
sudo apt-get install -qq python3 python3-pip | |
pip3 install clang-format==18.1.5 | |
git submodule update --init | |
./submodules/run-clang-format/run-clang-format.py --clang-format-executable clang-format --exclude src/third_party -r src |