Skip to content

Commit

Permalink
Add more information and more strict rules to the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
weslleyspereira committed Aug 10, 2022
1 parent c27fcad commit e203d67
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ on:
- '!**md'

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

defaults:
Expand All @@ -61,8 +61,8 @@ jobs:
matrix:
os: [ macos-latest, ubuntu-latest ]
fflags: [
"-fimplicit-none -frecursive -fcheck=all",
"-fimplicit-none -frecursive -fcheck=all -fopenmp" ]
"-flto -Wall -fimplicit-none -frecursive -fcheck=all",
"-flto -Wall -fimplicit-none -frecursive -fcheck=all -fopenmp" ]

steps:

Expand Down
35 changes: 31 additions & 4 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,15 @@ on:
- '!**md'

env:
CFLAGS: "-Wall -pedantic"
FFLAGS: "-fimplicit-none -frecursive -fopenmp -fcheck=all"
CC: "gcc"
FC: "gfortran"
CFLAGS: "-O3 -flto -Wall -pedantic-errors"
FFLAGS: "-O2 -flto -Wall -fimplicit-none -frecursive -fopenmp -fcheck=all"
FFLAGS_NOOPT: "-O0 -flto -Wall -fimplicit-none -frecursive -fopenmp -fcheck=all"
LDFLAGS: ""
AR: "ar"
ARFLAGS: "cr"
RANLIB: "ranlib"

defaults:
run:
Expand All @@ -46,9 +53,19 @@ jobs:
steps:
- name: Checkout LAPACK
uses: actions/checkout@v2
- name: Set configurations
run: |
echo "SHELL = /bin/sh" >> make.inc
echo "FFLAGS_DRV = ${{env.FFLAGS}}" >> make.inc
echo "TIMER = INT_ETIME" >> make.inc
echo "BLASLIB = ${{github.workspace}}/librefblas.a" >> make.inc
echo "CBLASLIB = ${{github.workspace}}/libcblas.a" >> make.inc
echo "LAPACKLIB = ${{github.workspace}}/liblapack.a" >> make.inc
echo "TMGLIB = ${{github.workspace}}/libtmglib.a" >> make.inc
echo "LAPACKELIB = ${{github.workspace}}/liblapacke.a" >> make.inc
echo "DOCSDIR = ${{github.workspace}}/DOCS" >> make.inc
- name: Install
run: |
cp make.inc.example make.inc
make -s -j2 all
make -j2 lapack_install
Expand All @@ -57,12 +74,22 @@ jobs:
steps:
- name: Checkout LAPACK
uses: actions/checkout@v2
- name: Set configurations
run: |
echo "SHELL = /bin/sh" >> make.inc
echo "FFLAGS_DRV = ${{env.FFLAGS}}" >> make.inc
echo "TIMER = INT_ETIME" >> make.inc
echo "BLASLIB = ${{github.workspace}}/librefblas.a" >> make.inc
echo "CBLASLIB = ${{github.workspace}}/libcblas.a" >> make.inc
echo "LAPACKLIB = ${{github.workspace}}/liblapack.a" >> make.inc
echo "TMGLIB = ${{github.workspace}}/libtmglib.a" >> make.inc
echo "LAPACKELIB = ${{github.workspace}}/liblapacke.a" >> make.inc
echo "DOCSDIR = ${{github.workspace}}/DOCS" >> make.inc
- name: Alias for GCC compilers
run: |
sudo ln -s $(which gcc-11) /usr/local/bin/gcc
sudo ln -s $(which gfortran-11) /usr/local/bin/gfortran
- name: Install
run: |
cp make.inc.example make.inc
make -s -j2 all
make -j2 lapack_install

0 comments on commit e203d67

Please sign in to comment.