diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 08f95f4cc..2539500e1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,6 +3,26 @@ name: CI on: ["push", "pull_request"] jobs: + build_ubuntu: + name: Build Ubuntu + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: build + run: | + sudo apt-get update + sudo apt install gcc build-essential libx11-dev libxt-dev libxext-dev libxft-dev libxtst-dev + sudo apt install flex byacc libmotif-common libmotif-dev libxpm4 libxpm-dev + sudo apt install gfortran-8 + # Create symlink to make variables work + sudo mkdir -p /home/gempak + sudo ln -s `pwd` /home/gempak/GEMPAK7 + . Gemenviron.profile + rm -f config/Makeinc.linux64_gfortran + ln -s `pwd`/config/Makeinc.linux64_gfortran_ubuntu config/Makeinc.linux64_gfortran + make all + build: name: Build Centos (${{ matrix.OS_VERSION }}) runs-on: ubuntu-latest diff --git a/config/Makeinc.linux64_gfortran_ubuntu b/config/Makeinc.linux64_gfortran_ubuntu index be59900c9..459cebff0 100644 --- a/config/Makeinc.linux64_gfortran_ubuntu +++ b/config/Makeinc.linux64_gfortran_ubuntu @@ -31,5 +31,5 @@ MOTIFLIBS = $(X11LIBDIR) -lXm BUFRFLAGS = -O -DNO_MSG_IPC -ansi -SYSLIBS = $(PYLIB) $(PYDEP) +SYSLIBS = $(PYLIB) $(PYDEP) -ldl CSYSLIB = $(PYLIB) $(PYDEP)