Skip to content

Commit 24453e1

Browse files
author
Omer Bulut
committed
fix: add environment variables to override CXXFLAGS in GitHub Actions
1 parent 48dc974 commit 24453e1

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ jobs:
156156
name: Parallel Testing & Performance Analysis
157157
runs-on: ubuntu-latest
158158
timeout-minutes: 30
159+
env:
160+
CXX: g++
161+
CXXFLAGS: -std=c++17 -Wall -Wextra -O2 -g
159162

160163
steps:
161164
- name: Checkout code
@@ -172,7 +175,6 @@ jobs:
172175
- name: Build All Tests
173176
run: |
174177
echo "🔨 Building all test executables..."
175-
export CXX=g++
176178
make clean
177179
make all
178180
@@ -244,6 +246,9 @@ jobs:
244246
name: Build Cache Analysis
245247
runs-on: ubuntu-latest
246248
timeout-minutes: 10
249+
env:
250+
CXX: g++
251+
CXXFLAGS: -std=c++17 -Wall -Wextra -O2 -g
247252

248253
steps:
249254
- name: Checkout code
@@ -266,8 +271,6 @@ jobs:
266271
./scripts/build_cache_manager.sh init || echo "⚠️ Cache initialization failed (continuing...)"
267272
268273
# Build multiple times to test cache effectiveness
269-
export CXX=g++
270-
271274
echo "🔨 First build (cache miss)..."
272275
make clean
273276
make all || echo "⚠️ First build failed (continuing...)"

0 commit comments

Comments
 (0)