Skip to content

Use latest actions Windows #145

Use latest actions Windows

Use latest actions Windows #145

Workflow file for this run

name: FortUTF Ubuntu GFortran 12
on: [push]
jobs:
build:
name: Ubuntu Latest Tests
runs-on: 'ubuntu-22.04'
steps:
- uses: actions/checkout@v3
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.14
with:
cmake-version: '3.27.x'
- name: Install GFortran 12
run: sudo apt install -y gfortran-12
- name: Build Tests
run: |
gfortran-12 --version
cmake -H. -Bbuild -DBUILD_TESTS=ON -DCMAKE_Fortran_COMPILER=$(which gfortran-12)
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
- name: Get Coverage Data
continue-on-error: true
run: |
sudo apt install -y lcov
lcov --gcov-tool $(which gcov) --directory . --capture --output-file temp.info -b src/
lcov --remove temp.info 'tests/*' 'tests/test_assertions/*' -o FortUTF.info
- uses: codecov/codecov-action@v3
continue-on-error: true
with:
file: FortUTF.info
fail_ci_if_error: true
verbose: true