Skip to content

Commit

Permalink
BLD: Update CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanSkocic committed Nov 12, 2023
1 parent 36e119e commit 906e8c7
Showing 1 changed file with 15 additions and 23 deletions.
38 changes: 15 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,31 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
toolchain:
- {compiler: gcc, version: 10}
#- {compiler: intel-classic, version: '2021.10'}

runs-on: ubuntu-latest
steps:
- name: Set Compilers
uses: fortran-lang/[email protected]
id: setup-fortran
with:
compiler: ${{ matrix.toolchain.compiler }}
version: ${{ matrix.toolchain.version }}
- name: Checkout
uses: actions/checkout@v4
run: |
sudo update-alternatives \
--install /usr/bin/gcc gcc /usr/bin/gcc-10 100 \
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-10 \
--slave /usr/bin/gcov gcov /usr/bin/gcov-10
- name: Set FPM
uses: fortran-lang/setup-fpm@v5
with:
fpm-version: "v0.9.0"
- name: Checkout
uses: actions/checkout@v4
- name: Gfortran version
run : gfortran --version
- name: Compile
run: |
fpm clean --all
fpm build --profile=debug
macos:
runs-on: macos-latest

windows:
windows_MSYS2:
runs-on: windows-latest
defaults:
run:
Expand All @@ -49,17 +44,14 @@ jobs:
msystem: MINGW64
install: >-
mingw-w64-x86_64-gcc-fortran
mingw-w64-x86_64-fpm
git
curl
make
- name: Checkout
uses: actions/checkout@v4
- name: Set FPM
uses: fortran-lang/setup-fpm@v5
with:
fpm-version: "v0.9.0"
- name: Gfortran version
run : gfortran --version
- name: Checkout
uses: actions/checkout@v4
- name: Compile
run: |
. ./configure.sh
Expand Down

0 comments on commit 906e8c7

Please sign in to comment.