Skip to content

Commit

Permalink
Try additional compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
artemis-beta committed Jan 16, 2025
1 parent 2da2258 commit cfcacc0
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/futs_lfortran.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: FortUTF Ubuntu lfortran 0.33.0

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Intel Latest Tests
runs-on: 'ubuntu-24.04'
steps:
- uses: actions/checkout@v4
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.31.x'
- name: Setup Intel ifort compiler
uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: lfortran
version: '0.33.0'
- name: Build Tests
run: |
lfortran --version
cmake -H. -Bbuild -DBUILD_TESTS=ON -DCMAKE_Fortran_COMPILER=lfortran
cmake --build build
- name: Run Tests
run: |
./build/FortUTF_Tests
if [ $? -eq 0 ]; then
echo "Unit Tests completed successfully"
exit 0
else
echo "Unit Tests failed"
exit 1
fi
- name: Run Test List
run: |
./build/FortUTF_Tests TEST_FAIL_EQUAL_CHAR TEST_EQUAL_CHAR
if [ $? -eq 0 ]; then
echo "Unit Tests completed succesfully"
exit 0
else
echo "Unit Tests failed"
exit 1
fi
49 changes: 49 additions & 0 deletions .github/workflows/futs_nvfortran.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: FortUTF Ubuntu NVidia Fortran 23.11

on: [push, pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Intel Latest Tests
runs-on: 'ubuntu-24.04'
steps:
- uses: actions/checkout@v4
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '3.31.x'
- name: Setup Intel ifort compiler
uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: nvfortran
version: '23.11'
- name: Build Tests
run: |
nvfortran --version
cmake -H. -Bbuild -DBUILD_TESTS=ON -DCMAKE_Fortran_COMPILER=nvfortran
cmake --build build
- name: Run Tests
run: |
./build/FortUTF_Tests
if [ $? -eq 0 ]; then
echo "Unit Tests completed successfully"
exit 0
else
echo "Unit Tests failed"
exit 1
fi
- name: Run Test List
run: |
./build/FortUTF_Tests TEST_FAIL_EQUAL_CHAR TEST_EQUAL_CHAR
if [ $? -eq 0 ]; then
echo "Unit Tests completed succesfully"
exit 0
else
echo "Unit Tests failed"
exit 1
fi
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ A purely FORTRANic framework for testing FORTRAN code
[![FortUTF macOS GFortran 13](https://github.com/artemis-beta/FortUTF/actions/workflows/futs_mac.yml/badge.svg)](https://github.com/artemis-beta/FortUTF/actions/workflows/futs_mac.yml)

[![FortUTF Ubuntu Intel 2025](https://github.com/artemis-beta/FortUTF/actions/workflows/futs_intel.yml/badge.svg)](https://github.com/artemis-beta/FortUTF/actions/workflows/futs_intel.yml)
[![FortUTF Ubuntu lfortran 0.33.0](https://github.com/artemis-beta/FortUTF/actions/workflows/futs_lfortran.yml/badge.svg)](https://github.com/artemis-beta/FortUTF/actions/workflows/futs_lfortran.yml)
[![FortUTF Ubuntu NVidia Fortran 23.11](https://github.com/artemis-beta/FortUTF/actions/workflows/futs_nvfortran.yml/badge.svg)](https://github.com/artemis-beta/FortUTF/actions/workflows/futs_nvfortran.yml)

[![codecov](https://codecov.io/gh/artemis-beta/FortUTF/branch/master/graph/badge.svg?token=tIwLkKYQ98)](https://codecov.io/gh/artemis-beta/FortUTF)

Expand Down

0 comments on commit cfcacc0

Please sign in to comment.