From 23aec5d5ba56a027abeba472f84dd1e8a417360d Mon Sep 17 00:00:00 2001 From: Anton Steketee <79179784+anton-seaice@users.noreply.github.com> Date: Tue, 17 Dec 2024 11:22:58 +1100 Subject: [PATCH] Create model-build-test-ci.yml (#10) * Create model-build-test-ci.yml * Update model-build-test-ci.yml * Adds optional input for RHS-aware model components --------- Co-authored-by: Tommy Gatti --- .github/workflows/model-build-test-ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/model-build-test-ci.yml diff --git a/.github/workflows/model-build-test-ci.yml b/.github/workflows/model-build-test-ci.yml new file mode 100644 index 0000000..f24a745 --- /dev/null +++ b/.github/workflows/model-build-test-ci.yml @@ -0,0 +1,20 @@ +name: Test model build + +on: + workflow_dispatch: + pull_request: + branches: + - "master" + - "access-esm1.5" + push: + branches: + - "master" + - "access-esm1.5" +jobs: + build: + name: Build ${{ github.repository }} via spack + uses: access-nri/build-ci/.github/workflows/model-1-build.yml@main + with: + rhs-branch: ${{ (github.base_ref == 'access-esm1.5' || github.ref_name == 'access-esm1.5') && 'access-esm1.5' }} + permissions: + packages: read