-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (38 loc) · 1.1 KB
/
futs_mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: FortUTF macOS GFortran 12
on: [push]
jobs:
build:
name: 'macOS Latest'
runs-on: 'macos-latest'
steps:
- uses: actions/checkout@v3
- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v1.14
with:
cmake-version: '3.27.x'
- name: Install GFortran macOS
run: brew install gcc@12
- name: Build Tests
run: |
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 succesfully"
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