Skip to content

add -fPIC to compilation flags #236

add -fPIC to compilation flags

add -fPIC to compilation flags #236

Workflow file for this run

name: Linux Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
repository_dispatch:
types: [Linux]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: libGMP
run: wget --progress=dot:mega https://ftp.gnu.org/gnu/gmp/gmp-6.3.0.tar.xz ; tar xf gmp-6.3.0.tar.xz ; cd gmp-6.3.0 ; ./configure --enable-cxx --enable-fat --prefix=$(pwd)/../usr/local --build=westmere-pc-linux-gnu ; make -j ; make install ; cd .. ;
- name: libExpat
run: wget --progress=dot:mega https://github.com/libexpat/libexpat/archive/R_2_2_4.tar.gz ; tar xzf R_2_2_4.tar.gz ; cd libexpat-R_2_2_4/expat/ ; ./buildconf.sh ; ./configure --prefix=$(pwd)/../../usr/local --without-xmlwf ; make -j ; make install ; cd ../.. ;
- name: ANTLR
run: /bin/bash ./antlr.sh
- name: tag version date
run: /bin/sh ./tag.sh
- name: autoreconf
run: autoreconf -vfi
- name: Grab libDDD artefacts
run: wget --progress=dot:mega https://github.com/lip6/libDDD/raw/gh-pages/linux.tgz ; tar xzf linux.tgz ; rm linux.tgz
- name: configure
run: ./configure --prefix=$PWD/usr/local/ --with-libexpat=$PWD/usr/local/ --with-libddd=$PWD/usr/local/ --with-gmp=$PWD/usr/local/ --with-antlrc=$PWD/usr/local/ --with-antlrjar=$PWD/usr/local/lib/antlr-3.4-complete.jar CPPFLAGS="-I$(pwd)/usr/local/include -DNDEBUG" LDFLAGS="-L$(pwd)/usr/local/lib" || cat config.log ;
- name: make
run: make -j 4
- name: run tests
run: cd tests ; ( rc=0 ; for TEST in *.data ; do ./run_test.pl $TEST || rc=$? ; done; exit $rc) ; cd ..
- name: strip binaries
run: strip -s bin/its-reach ; cp bin/its-reach website/its-reach ; strip -s bin/gal2c ; cp bin/gal2c website/gal2c
- name: make install
run: make install
- name: prepare artefact
run: tar cvzf linux.tgz usr/ ; mv linux.tgz website/
- name: make dist
run: make dist ; mv its*.tar.gz website/ ;
- name: CTL First step autoreconf
run: cd CTL ; autoreconf -vfi
- name: configure
run: cd CTL ; ./configure --prefix=$PWD/../usr/local/ --with-libexpat=$PWD/../usr/local/ --with-libddd=$PWD/../usr/local/ --with-gmp=$PWD/../usr/local/ --with-antlrc=$PWD/../usr/local/ CPPFLAGS="-I$(pwd)/../usr/local/include -DNDEBUG" LDFLAGS="-L$(pwd)/../usr/local/lib" || cat config.log ;
- name: make
run: cd CTL ; make
- name: run tests
run: cd CTL ; cd tests ; ( rc=0 ; for TEST in *.data ; do ./run_test.pl $TEST || rc=$? ; done; exit $rc) ; cd ..
- name: strip binaries
run: cd CTL ; strip -s bin/its-ctl ; cp bin/its-ctl ../website/ ;
- name: LTL start Grab Spot artefacts
run: wget --progress=dot:mega https://yanntm.github.io/Spot-BinaryBuilds/spot_linux.tar.gz ; tar xzf spot_linux.tar.gz ;
- name: autoreconf
run: cd LTL ; autoreconf -vfi
- name: configure
run: cd LTL ; ./configure --prefix=$PWD/../usr/local/ --with-libexpat=$PWD/../usr/local/ --with-libddd=$PWD/../usr/local/ --with-antlrc=$PWD/../usr/local/ --with-libspot=$(pwd)/../usr/local/ --with-libits=$(pwd)/../usr/local/ CPPFLAGS="-I$(pwd)/../usr/local/include -DNDEBUG" LDFLAGS="-L$(pwd)/../usr/local/lib" || cat config.log ;
- name: make
run: cd LTL ; make
- name: run tests
run: cd LTL ; cd tests ; ( rc=0 ; for TEST in *.data ; do ./run_test.pl $TEST || rc=$? ; done; exit $rc) ; cd ..
- name: strip binaries
run: cd LTL ; strip -s src/its-ltl ; cp src/its-ltl ../website/ ;
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: website/ # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch
single-commit: true