CI: Add instance for GCC -O3 on Ubuntu in cmake workflow.

This commit is contained in:
Nathan Moinvaziri 2022-10-10 18:06:52 -07:00 committed by Mark Adler
parent e029de6080
commit 76f3536af8

View File

@ -19,6 +19,11 @@ jobs:
build-dir: ../build
src-dir: ../zlib
- name: Ubuntu GCC -O3
os: ubuntu-latest
compiler: gcc
cflags: -O3
- name: Ubuntu Clang
os: ubuntu-latest
compiler: clang
@ -54,6 +59,7 @@ jobs:
run: cmake -S ${{ matrix.src-dir || '.' }} -B ${{ matrix.build-dir || '.' }} ${{ matrix.cmake-args }} -D CMAKE_BUILD_TYPE=${{ matrix.build-config || 'Release' }}
env:
CC: ${{ matrix.compiler }}
CFLAGS: ${{ matrix.cflags }}
- name: Compile source code
run: cmake --build ${{ matrix.build-dir || '.' }} --config ${{ matrix.build-config || 'Release' }}