Skip to content

Commit 366a975

Browse files
authored
Fix Action runner issues (#59)
* Move test workflow to latest runner images. Change workflow for test actions that used specific runner images versions - which have now become outdated - to use "latest" image. * Remove non-working add_to_project workflow. Removing deprecated, non-functional workflow config to enable checks to pass. * Fix issues in Mac runner integration tests. Fixing lack of Fortran compiler and CMake policy config issue when building Sloth.
1 parent c72cfc9 commit 366a975

File tree

3 files changed

+16
-24
lines changed

3 files changed

+16
-24
lines changed

.github/workflows/add_to_project.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/build_and_run_unit_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
# The type of runner that the job will run on
2424
strategy:
2525
matrix:
26-
os: [ubuntu-20.04, macos-12]
26+
os: [ubuntu-latest, macos-latest]
2727
fail-fast: false
2828
runs-on: ${{ matrix.os }}
2929

.github/workflows/ngen_integration.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ jobs:
4646
with:
4747
repository: noaa-owp/ngen
4848

49+
- name: Install uv
50+
uses: astral-sh/setup-uv@v7
51+
with:
52+
python-version: "3.12"
53+
enable-cache: false
54+
55+
- name: Install python via uv
56+
run: uv python install --default
57+
58+
- name: Install gcc12 on MacOS
59+
if: runner.os == 'macOS'
60+
run: |
61+
brew install gcc@12
62+
4963
- name: Build Surfacebmi
5064
id: submod_build_1
5165
uses: ./.github/actions/ngen-submod-build
@@ -71,6 +85,7 @@ jobs:
7185
id: submod_build_6
7286
uses: ./.github/actions/ngen-submod-build
7387
with:
88+
cmake-flags: -DCMAKE_POLICY_VERSION_MINIMUM=3.5
7489
mod-dir: "extern/sloth/"
7590
targets: "slothmodel"
7691

0 commit comments

Comments
 (0)