Skip to content

Speed up post-parse processing #161

Speed up post-parse processing

Speed up post-parse processing #161

Workflow file for this run

name: Linux
on: [push]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally
# well on Windows or Mac. You can convert this to a matrix build if you need
# cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout submodules using a PAT
run: |
git config --file .gitmodules --get-regexp url | while read url; do
git config --file=.gitmodules $(echo "$url" | sed -E "s/[email protected]:|https:\/\/github.com\//https:\/\/${{ secrets.CI_PAT }}:${{ secrets.CI_PAT }}@github.com\//")
done
git submodule sync
git submodule update --init --recursive
- name: CacheCMake
uses: actions/[email protected]
with:
path: cmake-3.20.0-rc3
key: ${{ runner.os }}-cmake-3.20.0-rc3
- name: Build Environment
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test;
sudo apt-get install g++-10 gcc-10;
sudo apt-get update;
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10;
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++-10 10;
sudo update-alternatives --set cc /usr/bin/gcc;
sudo update-alternatives --set c++ /usr/bin/g++;
sudo rm /usr/bin/gcc;
sudo rm /usr/bin/g++;
sudo ln -s /usr/bin/gcc-10 /usr/bin/gcc;
sudo ln -s /usr/bin/g++-10 /usr/bin/g++;
cd ..;
if ! test -d cmake-3.20.0-rc3; then
wget https://github.com/Kitware/CMake/releases/download/v3.20.0-rc3/cmake-3.20.0-rc3.tar.gz;
tar -xf cmake-3.20.0-rc3.tar.gz;
cd cmake-3.20.0-rc3;
./configure;
make -j16;
cd ..;
else
echo "Found cmake in cache!"
fi;
cd cmake-3.20.0-rc3;
sudo make install;
cd ..;
- name: Build dbcppp
run: |
mkdir build;
cd build;
cmake -DCMAKE_BUILD_TYPE=Release ..;
make -j6;
- name: RunTests
run: |
cd build;
make RunTests;