From 76f3536af80b654a6353a706ada652ae7719c8c2 Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri Date: Mon, 10 Oct 2022 18:06:52 -0700 Subject: [PATCH] CI: Add instance for GCC -O3 on Ubuntu in cmake workflow. --- .github/workflows/cmake.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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' }}