-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (78 loc) · 3 KB
/
gamma_f77.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
##############################################################################
# Copyright Christopher Kormanyos 2023.
# Distributed under the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt
# or copy at http://www.boost.org/LICENSE_1_0.txt)
name: gamma_f77
on:
push:
branches:
- '**'
pull_request:
jobs:
ubuntu-native:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
standard: [ legacy ]
compiler: [ g++ ]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: ubuntu-native
run: |
${{ matrix.compiler }} -x f77 -std=${{ matrix.standard }} -O2 gamma.f -lgfortran -lquadmath -o gamma.exe
ls -la gamma.exe
./gamma.exe | grep '0.947395504039301942134227647281424E+00'
./gamma.exe | grep '0.110784755653406415338349971053114E+01'
./gamma.exe | grep '0.271139823924390323650711692085896E+01'
./gamma.exe | grep '0.102754040920152050479188001843206E+02'
./gamma.exe | grep '0.531934282525008207389522379291889E+02'
./gamma.exe | grep '0.350998609824200588801455504140098E+03'
./gamma.exe | grep '0.282509453680418713613816084109635E+04'
./gamma.exe | grep '0.269036719467497675679082571845063E+05'
./gamma.exe | grep '0.296439082102472192334520537379648E+06'
./gamma.exe | grep '0.554521067573633755529159865936434E-01'
./gamma.exe | grep '0.355687428096000000000000000000000E+15'
macos-native:
runs-on: macos-latest
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
compiler: [ g++-13 ]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: update-tools
run: brew reinstall gcc
- name: brew-installed-gcc-path
run: |
PATH="/usr/local/Cellar/gcc/13.1.0/bin:$PATH"
- name: g++-version
run: |
echo Query the g++ version
${{ matrix.compiler }} -v
- name: macos-native
run: |
${{ matrix.compiler }} -x f77 -O2 gamma.f -lgfortran -lquadmath -o gamma.exe
ls -la gamma.exe
./gamma.exe | grep '0.947395504039301942134227647281424E+00'
./gamma.exe | grep '0.110784755653406415338349971053114E+01'
./gamma.exe | grep '0.271139823924390323650711692085896E+01'
./gamma.exe | grep '0.102754040920152050479188001843206E+02'
./gamma.exe | grep '0.531934282525008207389522379291889E+02'
./gamma.exe | grep '0.350998609824200588801455504140098E+03'
./gamma.exe | grep '0.282509453680418713613816084109635E+04'
./gamma.exe | grep '0.269036719467497675679082571845063E+05'
./gamma.exe | grep '0.296439082102472192334520537379648E+06'
./gamma.exe | grep '0.554521067573633755529159865936434E-01'
./gamma.exe | grep '0.355687428096000000000000000000000E+15'