Skip to content

Only use -O3 flag for intel compiler #15

Only use -O3 flag for intel compiler

Only use -O3 flag for intel compiler #15

Workflow file for this run

name: FortUTF Ubuntu Intel 2025
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 ifx compiler
uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: intel
version: '2025.0'
- name: Build Tests
run: |
ifx --version
cmake -H. -Bbuild -DBUILD_TESTS=ON -DCMAKE_Fortran_COMPILER=ifx
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