Skip to content

Commit

Permalink
Fix ubuntu-latest CI and introduce Arm validation (#1165)
Browse files Browse the repository at this point in the history
Signed-off-by: Igor S. Gerasimov <i.s.ger@ya.ru>
  • Loading branch information
foxtran authored Feb 5, 2025
1 parent 636caec commit ee06475
Showing 1 changed file with 29 additions and 14 deletions.
43 changes: 29 additions & 14 deletions .github/workflows/fortran-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
version: [12]
version: [12, 13, 14]
include:
- os: ubuntu-latest
- os: ubuntu-22.04
version: 10
- os: ubuntu-latest
- os: ubuntu-22.04
version: 11
- os: macos-latest
version: 13
- os: macos-latest
- os: ubuntu-24.04-arm
version: 14
steps:
- name: Checkout code
Expand All @@ -33,6 +31,10 @@ jobs:
echo "PKG_CONFIG_PATH=/usr/local/opt/openblas/lib/pkgconfig" >> $GITHUB_ENV
echo "LDFLAGS=-L/opt/homebrew/opt/openblas/lib" >> $GITHUB_ENV
echo "CPPFLAGS=-I/opt/homebrew/opt/openblas/include" >> $GITHUB_ENV
- name: Install OpenBLAS (ubuntu-latest)
if: ${{ matrix.os == 'ubuntu-latest' || contains(matrix.os, 'ubuntu-24.04') }}
run: |
sudo apt-get install libopenblas-dev
- name: Install meson
run: pip install meson ninja cmake
- name: Configure build
Expand All @@ -55,20 +57,25 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
fc: [gfortran-12]
cc: [gcc-12]
os: [ubuntu-latest, ubuntu-24.04-arm]
fc: [gfortran-14]
cc: [gcc-14]
build: [Release]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install OpenBLAS (ubuntu-latest)
if: ${{ matrix.os == 'ubuntu-latest' || contains(matrix.os, 'ubuntu-24.04') }}
run: |
sudo apt-get install libopenblas-dev
- name: Install CMake
run: pip install ninja cmake
- name: Configure build
run: cmake -B ${{ env.BUILD_DIR }} -G Ninja
run: cmake -B ${{ env.BUILD_DIR }} -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build }}
env:
FC: ${{ matrix.fc }}
CC: ${{ matrix.cc }}
Expand All @@ -85,15 +92,19 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
fc: [gfortran-12]
cc: [gcc-12]
fc: [gfortran-14]
cc: [gcc-14]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install OpenBLAS (ubuntu-latest)
if: ${{ matrix.os == 'ubuntu-latest' || contains(matrix.os, 'ubuntu-24.04') }}
run: |
sudo apt-get install libopenblas-dev
- name: Install meson
run: pip3 install meson==0.62.0 ninja cmake
- name: Configure build
Expand All @@ -115,15 +126,19 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
fc: [gfortran-12]
cc: [gcc-12]
fc: [gfortran-14]
cc: [gcc-14]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Install OpenBLAS (ubuntu-latest)
if: ${{ matrix.os == 'ubuntu-latest' || contains(matrix.os, 'ubuntu-24.04') }}
run: |
sudo apt-get install libopenblas-dev
- name: Install CMake
run: pip3 install ninja cmake
- name: Configure build
Expand Down

0 comments on commit ee06475

Please sign in to comment.