Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cxong/tinydir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCong <congusbongus@gmail.com>2021-11-21 04:09:36 +0300
committerGitHub <noreply@github.com>2021-11-21 04:09:36 +0300
commit878d6f0e66d389e6d84411decf2a7e0f0b47b6b3 (patch)
treea61a36e32cb43d2bab1e5187b66ac5f72fb19118
parent4acafe7916720645bf65e19be8603acfe7acdba1 (diff)
Add -O3 to build matrix
-rw-r--r--.github/workflows/cmake.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml
index a666bf4..77939b1 100644
--- a/.github/workflows/cmake.yml
+++ b/.github/workflows/cmake.yml
@@ -18,12 +18,19 @@ jobs:
include:
- os: macos-latest
CC: clang
+ cflags: ''
- os: ubuntu-latest
CC: gcc
gcc_version: 11
+ cflags: ''
+ - os: ubuntu-latest
+ CC: gcc
+ gcc_version: 11
+ cflags: -O3
- os: ubuntu-latest
CC: gcc
gcc_version: latest
+ cflags: ''
steps:
- uses: actions/checkout@v2
@@ -37,6 +44,7 @@ jobs:
- name: Build
env:
CC: ${{ matrix.CC }}
+ CFLAGS: ${{ matrix.cflags }}
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} tests
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}