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