Skip to content

Commit

Permalink
fix clang ci (#5196)
Browse files Browse the repository at this point in the history
* Add minor version to install clang

* Add clang version checks

* Revert to ubuntu-22.04

* Try adding  libtinfo5

* Disable fortran
  • Loading branch information
byrnHDF authored Dec 31, 2024
1 parent d4a5e1e commit 11ddd62
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 25 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/cmake-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
# Linux (Ubuntu) w/ gcc + coverage
#
name: "Ubuntu GCC Coverage"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Install CMake Dependencies (Linux_coverage)
run: |
Expand Down Expand Up @@ -122,19 +122,19 @@ jobs:
# Linux (Ubuntu) w/ clang + LeakSanitizer
#
name: "Ubuntu Clang LeakSanitizer"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Install CMake Dependencies (Linux_Leak)
run: |
sudo apt update
sudo apt-get install ninja-build doxygen graphviz curl
sudo apt-get install ninja-build doxygen graphviz curl libtinfo5
- name: add clang to env
uses: KyleMayes/[email protected]
id: setup-clang
with:
env: true
version: '18'
version: '18.1'

- name: Set file base name (Linux_Leak)
id: set-file-base
Expand Down Expand Up @@ -222,19 +222,19 @@ jobs:
# Linux (Ubuntu) w/ clang + AddressSanitizer
#
name: "Ubuntu Clang AddressSanitizer"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Install CMake Dependencies (Linux_Address)
run: |
sudo apt update
sudo apt-get install ninja-build doxygen graphviz curl
sudo apt-get install ninja-build doxygen graphviz curl libtinfo5
- name: add clang to env
uses: KyleMayes/[email protected]
id: setup-clang
with:
env: true
version: '18'
version: '18.1'

- name: Set file base name (Linux_Address)
id: set-file-base
Expand Down Expand Up @@ -322,19 +322,19 @@ jobs:
# Linux (Ubuntu) w/ clang + UndefinedBehaviorSanitizer
#
name: "Ubuntu Clang UndefinedBehaviorSanitizer"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Install CMake Dependencies (Linux_UndefinedBehavior)
run: |
sudo apt update
sudo apt-get install ninja-build doxygen graphviz curl
sudo apt-get install ninja-build doxygen graphviz curl libtinfo5
- name: add clang to env
uses: KyleMayes/[email protected]
id: setup-clang
with:
env: true
version: '18'
version: '18.1'

- name: Set file base name (Linux_UndefinedBehavior)
id: set-file-base
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/cmake-ctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,12 @@ jobs:
with:
version: "1.9.7"

- name: check clang version
shell: bash
run: |
which clang
clang -v
- name: Install the Apple certificate and provisioning profile
shell: bash
env:
Expand Down
18 changes: 15 additions & 3 deletions .github/workflows/cmake-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ jobs:
with:
version: "1.9.7"

- name: check clang version
shell: bash
run: |
which clang
clang -v
- name: Set up JDK 19
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -615,19 +621,25 @@ jobs:
# Linux (Ubuntu) w/ clang + CMake
#
name: "Ubuntu Clang CMake"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Install CMake Dependencies (Linux_clang)
run: |
sudo apt-get update
sudo apt-get install ninja-build doxygen graphviz curl
sudo apt-get install ninja-build doxygen graphviz curl libtinfo5
- name: add clang to env
uses: KyleMayes/[email protected]
id: setup-clang
with:
env: true
version: '18'
version: '18.1'

- name: check clang version
shell: bash
run: |
which clang
clang -v
- name: Set file base name (Linux_clang)
id: set-file-base
Expand Down
20 changes: 8 additions & 12 deletions .github/workflows/main-cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ jobs:

# Linux (Ubuntu) w/ gcc + CMake
#
# We might think about adding Clang, but MacOS already tests that
# so it's not critical
- name: "Ubuntu gcc"
os: ubuntu-latest
cpp: ON
Expand All @@ -87,12 +85,10 @@ jobs:

# MacOS w/ Clang + CMake
#
# We could also build with the Autotools via brew installing them,
# but that seems unnecessary
- name: "MacOS Clang"
os: macos-latest
cpp: ON
fortran: ON
fortran: OFF
java: ON
docs: ON
libaecfc: ON
Expand Down Expand Up @@ -139,13 +135,13 @@ jobs:
if: ${{ matrix.os == 'macos-latest' }}

# symlinks the compiler executables to a common location
- name: Install GNU Fortran (macOS)
uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: gcc
version: 14
if: ${{ matrix.os == 'macos-latest' }}
# - name: Install GNU Fortran (macOS)
# uses: fortran-lang/setup-fortran@v1
# id: setup-fortran
# with:
# compiler: gcc
# version: 14
# if: ${{ matrix.os == 'macos-latest' }}

- name: Install Dependencies
uses: ssciwr/doxygen-install@v1
Expand Down

0 comments on commit 11ddd62

Please sign in to comment.