Skip to content

Commit

Permalink
Update GitHub workflow build types
Browse files Browse the repository at this point in the history
  • Loading branch information
pprcht committed Jan 27, 2025
1 parent 044284e commit e1220e6
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
build: [cmake]
build-type: [debug]
compiler: [gnu]
version: [11,12]
version: [11,12,14]

include:
- os: ubuntu-latest
Expand All @@ -48,11 +48,17 @@ jobs:
build: cmake
build-type: debugoptimized
compiler: gnu
version: 14

- os: ubuntu-latest
build: cmake
build-type: static
compiler: gnu
version: 12

- os: ubuntu-latest
build: meson
build-type: debugoptimized
build-type: static
compiler: intel
version: 2023.1.0

Expand Down Expand Up @@ -155,12 +161,6 @@ jobs:
--prefix=$PWD/_dist
--libdir=lib
--warnlevel=0
# ${{ env.MESON_ARGS }}
# env:
# COVERAGE: ${{ matrix.build-type == 'coverage' }}
# MESON_ARGS: >-
# ${{ matrix.compiler == 'intel' && '-Dfortran_link_args=-qopenmp -Dapi=false' || '' }}
# ${{ contains(matrix.os, 'macos') && '-Dlapack=openblas' || '' }}
- name: Configure build (CMake, debug)
if: ${{ matrix.build == 'cmake' && matrix.build-type == 'debug' }}
Expand All @@ -179,6 +179,16 @@ jobs:
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_INSTALL_PREFIX=$PWD/_dist
-DCMAKE_INSTALL_LIBDIR=lib
- name: Configure build (CMake, static)
if: ${{ matrix.build == 'cmake' && matrix.build-type == 'static' }}
run: >-
cmake -B${{ env.BUILD_DIR }}
-GNinja
-DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_INSTALL_PREFIX=$PWD/_dist
-DCMAKE_INSTALL_LIBDIR=lib
-DWITH_TESTS=OFF
-DSTATICBUILD=ON
- name: Build project
Expand All @@ -198,7 +208,7 @@ jobs:
echo "CREST_PREFIX=$PWD/_dist" >> $GITHUB_ENV
- name: Create package
if: ${{ matrix.build-type == 'debugoptimized' }}
if: ${{ matrix.build-type == 'static' }}
run: |
mkdir crest
cp COPYING crest/LICENSE
Expand All @@ -211,7 +221,7 @@ jobs:
OUTPUT: crest-${{ matrix.compiler }}-${{ matrix.version }}-${{ matrix.os }}.tar

- name: Upload package
if: ${{ matrix.build-type == 'debugoptimized' }}
if: ${{ matrix.build-type == 'static' }}
uses: actions/upload-artifact@v4
with:
name: ${{ env.CREST_OUTPUT }}
Expand Down

0 comments on commit e1220e6

Please sign in to comment.