Debian Codegraph @

.github/workflows/makefile.yml

raw
1 name: Makefile
2
3 on:
4 push:
5 branches:
6 - master
7 - try-github-actions
8 paths:
9 - .github/workflows/makefile.yml
10 - '**Makefile'
11 - 'BLAS/**'
12 - 'CBLAS/**'
13 - 'INSTALL/**'
14 - 'LAPACKE/**'
15 - 'SRC/**'
16 - 'TESTING/**'
17 - '!**README'
18 - '!**CMakeLists.txt'
19 - '!**md'
20 pull_request:
21 paths:
22 - .github/workflows/makefile.yml
23 - '**Makefile'
24 - 'BLAS/**'
25 - 'CBLAS/**'
26 - 'INSTALL/**'
27 - 'LAPACKE/**'
28 - 'SRC/**'
29 - 'TESTING/**'
30 - '!**README'
31 - '!**CMakeLists.txt'
32 - '!**md'
33
34 permissions:
35 contents: read
36
37 env:
38 CC: "gcc"
39 FC: "gfortran"
40 CFLAGS: "-O3 -flto -Wall -pedantic-errors"
41 FFLAGS: "-O2 -flto -Wall -Werror=conversion -pedantic -fimplicit-none -frecursive -fopenmp -fcheck=all"
42 FFLAGS_NOOPT: "-O0 -flto -Wall -fimplicit-none -frecursive -fopenmp -fcheck=all"
43 LDFLAGS: ""
44 AR: "ar"
45 ARFLAGS: "cr"
46 RANLIB: "ranlib"
47
48 defaults:
49 run:
50 shell: bash
51
52 jobs:
53
54 install-ubuntu:
55 runs-on: ubuntu-latest
56 steps:
57 - name: Checkout LAPACK
58 uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
59 - name: Set configurations
60 run: |
61 echo "SHELL = /bin/sh" >> make.inc
62 echo "FFLAGS_DRV = ${{env.FFLAGS}}" >> make.inc
63 echo "TIMER = INT_ETIME" >> make.inc
64 echo "BLASLIB = ${{github.workspace}}/librefblas.a" >> make.inc
65 echo "CBLASLIB = ${{github.workspace}}/libcblas.a" >> make.inc
66 echo "LAPACKLIB = ${{github.workspace}}/liblapack.a" >> make.inc
67 echo "TMGLIB = ${{github.workspace}}/libtmglib.a" >> make.inc
68 echo "LAPACKELIB = ${{github.workspace}}/liblapacke.a" >> make.inc
69 echo "DOCSDIR = ${{github.workspace}}/DOCS" >> make.inc
70 - name: Install
71 run: |
72 make -s -j2 all
73 make -j2 lapack_install
74
75 install-macos:
76 runs-on: macos-latest
77 steps:
78 - name: Checkout LAPACK
79 uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
80 - name: Set configurations
81 run: |
82 echo "SHELL = /bin/sh" >> make.inc
83 echo "FFLAGS_DRV = ${{env.FFLAGS}}" >> make.inc
84 echo "TIMER = INT_ETIME" >> make.inc
85 echo "BLASLIB = ${{github.workspace}}/librefblas.a" >> make.inc
86 echo "CBLASLIB = ${{github.workspace}}/libcblas.a" >> make.inc
87 echo "LAPACKLIB = ${{github.workspace}}/liblapack.a" >> make.inc
88 echo "TMGLIB = ${{github.workspace}}/libtmglib.a" >> make.inc
89 echo "LAPACKELIB = ${{github.workspace}}/liblapacke.a" >> make.inc
90 echo "DOCSDIR = ${{github.workspace}}/DOCS" >> make.inc
91 - name: Alias for GCC compilers
92 run: |
93 sudo ln -s $(which gcc-14) /usr/local/bin/gcc
94 sudo ln -s $(which gfortran-14) /usr/local/bin/gfortran
95 - name: Install
96 run: |
97 make -s -j2 all
98 make -j2 lapack_install