Merge pull request #152 from akrherz/gh151_nawips_7_18_0 #110
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: 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 | |
. 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 | |
strategy: | |
matrix: | |
OS_VERSION: ["7", "stream8"] | |
env: | |
OS_VERSION: ${{ matrix.OS_VERSION }} | |
OS_TYPE: "centos" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: build | |
run: | | |
echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null | |
sudo service docker restart | |
sleep 5 | |
sudo docker pull quay.io/centos/${OS_TYPE}:${OS_VERSION} | |
build/setup.sh ${OS_TYPE} ${OS_VERSION} | |