CI: Add instance for GCC -O3 on Ubuntu in cmake workflow.
This commit is contained in:
parent
e029de6080
commit
76f3536af8
6
.github/workflows/cmake.yml
vendored
6
.github/workflows/cmake.yml
vendored
@ -19,6 +19,11 @@ jobs:
|
|||||||
build-dir: ../build
|
build-dir: ../build
|
||||||
src-dir: ../zlib
|
src-dir: ../zlib
|
||||||
|
|
||||||
|
- name: Ubuntu GCC -O3
|
||||||
|
os: ubuntu-latest
|
||||||
|
compiler: gcc
|
||||||
|
cflags: -O3
|
||||||
|
|
||||||
- name: Ubuntu Clang
|
- name: Ubuntu Clang
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
compiler: clang
|
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' }}
|
run: cmake -S ${{ matrix.src-dir || '.' }} -B ${{ matrix.build-dir || '.' }} ${{ matrix.cmake-args }} -D CMAKE_BUILD_TYPE=${{ matrix.build-config || 'Release' }}
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.compiler }}
|
CC: ${{ matrix.compiler }}
|
||||||
|
CFLAGS: ${{ matrix.cflags }}
|
||||||
|
|
||||||
- name: Compile source code
|
- name: Compile source code
|
||||||
run: cmake --build ${{ matrix.build-dir || '.' }} --config ${{ matrix.build-config || 'Release' }}
|
run: cmake --build ${{ matrix.build-dir || '.' }} --config ${{ matrix.build-config || 'Release' }}
|
||||||
|
Loading…
Reference in New Issue
Block a user