From ec1b0fc4acc3bf472ad799dd624e567fae7db802 Mon Sep 17 00:00:00 2001 From: Mijian Xu Date: Thu, 16 May 2024 01:00:31 +0800 Subject: [PATCH 1/2] Create build.yml --- .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 0000000..fbb95df --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,27 @@ +name: Build SurfATT + +on: + push: + branches: [ "devel" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup conda + uses: conda-incubator/setup-miniconda@v3 + with: + activate-environment: surfatt + channels: conda-forge + - name: Install dependencies + run: | + conda install openmpi cxx-compiler fortran-compiler cmake hdf5 + - name: make + run: | + mkdir build && cd build + cmake .. && make -j 4 From 84f23c7f16845fbd3edff3b3200a4f163058db0e Mon Sep 17 00:00:00 2001 From: Mijian Xu Date: Thu, 16 May 2024 01:09:01 +0800 Subject: [PATCH 2/2] Update build.yml --- .github/workflows/build.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fbb95df..da1d5cc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,14 +13,9 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Setup conda - uses: conda-incubator/setup-miniconda@v3 - with: - activate-environment: surfatt - channels: conda-forge - name: Install dependencies run: | - conda install openmpi cxx-compiler fortran-compiler cmake hdf5 + sudo apt install build-essential gfortran cmake libopenmpi-dev openmpi-bin libhdf5-dev - name: make run: | mkdir build && cd build