From ea066176d23c5ae8a537ad6b29ba05a5cad81102 Mon Sep 17 00:00:00 2001 From: akrherz Date: Tue, 1 Feb 2022 15:58:18 -0600 Subject: [PATCH] add build workflow --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..b0fac3d9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ + +name: Build WEPP +on: [push, pull_request] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: setup repo + run: | + wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB + sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB + rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB + sudo echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list + sudo apt-get update + + - name: Install Intel Compiler + run: | + sudo apt-get install -y intel-oneapi-compiler-fortran + + - name: Setup CI from ci-tooling + run: | + source /opt/intel/oneapi/setvars.sh + cd src/wepp2012-src + make