Skip to content

Commit 5792a1d

Browse files
Add more information and more strict rules to the CI
1 parent 0b9757d commit 5792a1d

File tree

2 files changed

+34
-7
lines changed

2 files changed

+34
-7
lines changed

.github/workflows/cmake.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ on:
3434
- '!**md'
3535

3636
env:
37-
CFLAGS: "-Wall -pedantic"
37+
CFLAGS: "-flto -Wall -pedantic-errors"
3838
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
3939

4040
defaults:
@@ -61,8 +61,8 @@ jobs:
6161
matrix:
6262
os: [ macos-latest, ubuntu-latest ]
6363
fflags: [
64-
"-fimplicit-none -frecursive -fcheck=all",
65-
"-fimplicit-none -frecursive -fcheck=all -fopenmp" ]
64+
"-flto -Wall -fimplicit-none -frecursive -fcheck=all",
65+
"-flto -Wall -fimplicit-none -frecursive -fcheck=all -fopenmp" ]
6666

6767
steps:
6868

.github/workflows/makefile.yml

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,15 @@ on:
3232
- '!**md'
3333

3434
env:
35-
CFLAGS: "-Wall -pedantic"
36-
FFLAGS: "-fimplicit-none -frecursive -fopenmp -fcheck=all"
35+
CC: "gcc"
36+
FC: "gfortran"
37+
CFLAGS: "-O3 -flto -Wall -pedantic-errors"
38+
FFLAGS: "-O2 -flto -Wall -fimplicit-none -frecursive -fopenmp -fcheck=all"
39+
FFLAGS_NOOPT: "-O0 -flto -Wall -fimplicit-none -frecursive -fopenmp -fcheck=all"
40+
LDFLAGS: ""
41+
AR: "ar"
42+
ARFLAGS: "cr"
43+
RANLIB: "ranlib"
3744

3845
defaults:
3946
run:
@@ -46,9 +53,19 @@ jobs:
4653
steps:
4754
- name: Checkout LAPACK
4855
uses: actions/checkout@v2
56+
- name: Set configurations
57+
run: |
58+
echo "SHELL = /bin/sh" >> make.inc
59+
echo "FFLAGS_DRV = ${{env.FFLAGS}}" >> make.inc
60+
echo "TIMER = INT_ETIME" >> make.inc
61+
echo "BLASLIB = ${{github.workspace}}/librefblas.a" >> make.inc
62+
echo "CBLASLIB = ${{github.workspace}}/libcblas.a" >> make.inc
63+
echo "LAPACKLIB = ${{github.workspace}}/liblapack.a" >> make.inc
64+
echo "TMGLIB = ${{github.workspace}}/libtmglib.a" >> make.inc
65+
echo "LAPACKELIB = ${{github.workspace}}/liblapacke.a" >> make.inc
66+
echo "DOCSDIR = ${{github.workspace}}/DOCS" >> make.inc
4967
- name: Install
5068
run: |
51-
cp make.inc.example make.inc
5269
make -s -j2 all
5370
make -j2 lapack_install
5471
@@ -57,12 +74,22 @@ jobs:
5774
steps:
5875
- name: Checkout LAPACK
5976
uses: actions/checkout@v2
77+
- name: Set configurations
78+
run: |
79+
echo "SHELL = /bin/sh" >> make.inc
80+
echo "FFLAGS_DRV = ${{env.FFLAGS}}" >> make.inc
81+
echo "TIMER = INT_ETIME" >> make.inc
82+
echo "BLASLIB = ${{github.workspace}}/librefblas.a" >> make.inc
83+
echo "CBLASLIB = ${{github.workspace}}/libcblas.a" >> make.inc
84+
echo "LAPACKLIB = ${{github.workspace}}/liblapack.a" >> make.inc
85+
echo "TMGLIB = ${{github.workspace}}/libtmglib.a" >> make.inc
86+
echo "LAPACKELIB = ${{github.workspace}}/liblapacke.a" >> make.inc
87+
echo "DOCSDIR = ${{github.workspace}}/DOCS" >> make.inc
6088
- name: Alias for GCC compilers
6189
run: |
6290
sudo ln -s $(which gcc-11) /usr/local/bin/gcc
6391
sudo ln -s $(which gfortran-11) /usr/local/bin/gfortran
6492
- name: Install
6593
run: |
66-
cp make.inc.example make.inc
6794
make -s -j2 all
6895
make -j2 lapack_install

0 commit comments

Comments
 (0)