Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow fix #17

Merged
merged 4 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 30 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
name: CI

on: [push, pull_request]
on:
push:
paths-ignore:
- "docs/**"
- "*.md"
- "*.rst"
- ".*"

pull_request:
paths-ignore:
- "docs/**"
- "*.md"
- "*.rst"
- ".*"

workflow_dispatch:

env:
M_BUILD_DIR: _build_meson
Expand All @@ -12,36 +27,41 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-13]

env:
FC: gfortran
GCC_V: 10
PYTHON_V: 3.8

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- uses: actions/setup-python@v1
- name: Setup Python version ${{ env.PYTHON_V }}
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: ${{ env.PYTHON_V }}

- name: Install GCC (OSX)
if: contains(matrix.os, 'macos')
run: |
ln -s /usr/local/bin/gfortran-${GCC_V} /usr/local/bin/gfortran
which gfortran-${GCC_V}
which gfortran
brew install gcc@${{ env.GCC_V }}
ln -s /usr/local/bin/gfortran-${{ env.GCC_V }} /usr/local/bin/gfortran
ln -s /usr/local/bin/gcc-${{ env.GCC_V }} /usr/local/bin/gcc
ln -s /usr/local/bin/g++-${{ env.GCC_V }} /usr/local/bin/g++
which gfortran

- name: Install GCC (Linux)
if: contains(matrix.os, 'ubuntu')
run: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
sudo update-alternatives \
--install /usr/bin/gcc gcc /usr/bin/gcc-${GCC_V} 100 \
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
--slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V}

- name: Install meson/cmake
run: pip3 install meson==0.56.2 ninja cmake
run: pip3 install meson==0.57.2 ninja cmake

- name: Configure meson build
run: meson setup ${{ env.M_BUILD_DIR }}
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ Currently available benchmark sets are
- *MB16-43*
- *UPU23*
- *X23*

Furthermore, some test systems beyond published benchmark sets are also collected:

- *f-block*

For the detailed record names of the benchmarks look up the respective benchmark entry.
Expand Down
4 changes: 2 additions & 2 deletions src/mstore.f90
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,13 @@ subroutine get_mstore_collections(collections)
collections = [ &
new_collection("Amino20x4", get_amino20x4_records), &
new_collection("But14diol", get_but14diol_records), &
new_collection("f-block", get_f_block_records), &
new_collection("Heavy28", get_heavy28_records), &
new_collection("ICE10", get_ice10_records), &
new_collection("IL16", get_il16_records), &
new_collection("MB16-43", get_mb16_43_records), &
new_collection("UPU23", get_upu23_records), &
new_collection("X23", get_x23_records), &
new_collection("f-block", get_f_block_records) &
new_collection("X23", get_x23_records) &
]

end subroutine get_mstore_collections
Expand Down
2 changes: 1 addition & 1 deletion src/mstore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ list(
APPEND srcs
"${dir}/amino20x4.f90"
"${dir}/but14diol.f90"
"${dir}/f_block.f90"
"${dir}/heavy28.f90"
"${dir}/ice10.f90"
"${dir}/il16.f90"
"${dir}/mb16_43.f90"
"${dir}/upu23.f90"
"${dir}/x23.f90"
"${dir}/f_block.f90"
)

set(srcs "${srcs}" PARENT_SCOPE)
2 changes: 1 addition & 1 deletion src/mstore/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ subdir('data')
srcs += files(
'amino20x4.f90',
'but14diol.f90',
'f_block.f90',
'heavy28.f90',
'ice10.f90',
'il16.f90',
'mb16_43.f90',
'upu23.f90',
'x23.f90',
'f_block.f90',
)
Loading