Skip to content

Commit

Permalink
Use unified build and run codes for Linux & MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
stcui007 committed Dec 11, 2023
1 parent 7bd6578 commit a2c2ee0
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/Build_and_Run_Standalone_Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
# Build and run noah executable
# noah-owp-modular's configure system has 5 options serving the need for different computer
# servers and OS environment. The numbers 5 and 4 are appropriate for our computing enviroments.
- name: Build and Run Standalone noah-owp-modular in Linux
- name: Configure
run: |
if [ ${{ runner.os }} == 'Linux' ]
then
Expand All @@ -60,10 +60,15 @@ jobs:
then
./configure 4
fi
make
cd run
./noah_owp_modular.exe namelist.input
cd ..
make testBMI
cd test
./noahowp_test.exe ../run/namelist.input
- name: Build and Run Standalone
run: |
make
cd run
./noah_owp_modular.exe namelist.input
- name: Build and Run BMI test
run: |
make testBMI
cd test
./noahowp_test.exe ../run/namelist.input

0 comments on commit a2c2ee0

Please sign in to comment.