forked from NCAR/ccpp-scm
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (27 loc) · 989 Bytes
/
ci_scm_ccpp_prebuild.yml
File metadata and controls
37 lines (27 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# CI test to run SCM ccpp_prebuild script
name: build
on: [push, pull_request, workflow_dispatch]
jobs:
build-linux:
if: github.repository == 'NCAR/ccpp-scm'
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Initialize submodules
run: git submodule update --init --recursive
- name: Set up Python 3.11.7
uses: actions/setup-python@v6
with:
python-version: 3.11.7
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Update system packages
run: sudo apt-get update
- name: Run ccpp_prebuild.py
run: |
mkdir -p /home/runner/work/ccpp-scm/ccpp-scm/scm/bin/ccpp/physics/physics/
./ccpp/framework/scripts/ccpp_prebuild.py --config ccpp/config/ccpp_prebuild_config.py