summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2022-10-10 18:06:52 -0700
committerMark Adler <fork@madler.net>2022-10-11 20:21:50 -0700
commit76f3536af80b654a6353a706ada652ae7719c8c2 (patch)
treeabce8eb91f28c4617d66354b01137af1d64bd74f /.github
parente029de6080b24c4a10838cc0c5742d4c488429fa (diff)
downloadzlib-76f3536af80b654a6353a706ada652ae7719c8c2.tar.gz
CI: Add instance for GCC -O3 on Ubuntu in cmake workflow.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/cmake.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index 9100c67..35f7377 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -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' }}