Skip to content

Commit

Permalink
fix(CI): use CFE from workflow build in ngen test run
Browse files Browse the repository at this point in the history
  • Loading branch information
hellkite500 authored and PhilMiller committed Jun 11, 2024
1 parent 2b9ec7b commit c21a6be
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ngen_integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,23 @@ jobs:
with:
repository: noaa-owp/cfe

# Checkout and build CFE
- name: Checkout the commit
uses: actions/checkout@v4
with:
repository: noaa-owp/cfe

- name: Build CFE Library
run: |
cmake -B cmake_build -S . -DNGEN=ON
make -C cmake_build
- name: Save CFE to a Temp Directory
run: |
# Move files to a temporary directory
mkdir ${{runner.temp}}/cfe
mv ./* ${{runner.temp}}/cfe
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
# Checkout ngen after cfe checkout so $GITHUB_WORKSPACE doesn't get clobbered
# otherwise the submod action isn't available
Expand Down Expand Up @@ -100,6 +112,11 @@ jobs:
rm -rf extern/SoilMoistureProfiles/SoilMoistureProfiles/*
mv ${{runner.temp}}/smp/* extern/SoilMoistureProfiles/SoilMoistureProfiles
- name: Move CFE Files Including cmake_build to Appropriate Directory
run: |
rm -rf extern/cfe/cfe/*
mv ${{runner.temp}}/cfe/* extern/cfe/cfe
- name: Run Ngen Test for SMP
run: |
mv ${{ steps.ngen_id1.outputs.build-dir }} ./ngen-build/
Expand Down

0 comments on commit c21a6be

Please sign in to comment.