De boost #33
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: | |
branches: | |
- main | |
- dev | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-22.04, ubuntu-20.04] | |
gnu: [9] | |
runs-on: ${{ matrix.os }} | |
env: | |
CC: /usr/bin/gcc-${{ matrix.gnu }} | |
CXX: /usr/bin/g++-${{ matrix.gnu }} | |
LD_LIBRARY_PATH: /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server:/usr/lib/x86_64-linux-gnu | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '8' | |
- name: Checkout submodules | |
shell: bash | |
run: | | |
git submodule sync --recursive | |
git -c "http.extraheader=Authorization: basic ${{ secrets.SUBMODULE_TOKEN }}" -c protocol.version=2 submodule update --init --force --recursive --depth=1 | |
git submodule status | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y openjdk-8-jdk && \ | |
sudo apt-get install -y \ | |
antlr4 \ | |
automake \ | |
autotools-dev \ | |
bison \ | |
build-essential \ | |
cmake \ | |
curl \ | |
flex \ | |
g++-${{ matrix.gnu }} \ | |
gdb \ | |
gfortran-${{ matrix.gnu }} \ | |
ghostscript \ | |
git \ | |
graphviz \ | |
libantlr4-runtime-dev \ | |
libboost-all-dev \ | |
libtool \ | |
python3-dev | |
- name: Configure | |
run: | | |
cd $GITHUB_WORKSPACE | |
mkdir ../rex_build | |
cd ../rex_build | |
cmake -Denable-c=ON -Denable-fortran=ON -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/../rex_install $GITHUB_WORKSPACE | |
- name: Build | |
run: | | |
cd $GITHUB_WORKSPACE/../rex_build | |
cmake --build . -j2 | |
make install -j2 | |
# Currently, we don't have working tests for CMake builds. |