Skip to content

Commit fec1f79

Browse files
committed
fix ci
1 parent 73f28ba commit fec1f79

2 files changed

Lines changed: 12 additions & 9 deletions

File tree

‎.github/workflows/benchmark.yml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,16 @@ jobs:
3838
run: |
3939
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
4040
echo "$(brew --prefix)/bin" >> $GITHUB_PATH
41-
echo "LD_LIBRARY_PATH=$(brew --prefix)/lib" >> $GITHUB_ENV
42-
brew install aws-sdk-cpp google-benchmark go rust
41+
brew install aws-sdk-cpp google-benchmark go rust curl openssl@3
42+
# Use one curl/OpenSSL stack for CMake, pkg-config, and the runtime loader.
43+
echo "CMAKE_PREFIX_PATH=$(brew --prefix curl);$(brew --prefix openssl@3)" >> $GITHUB_ENV
44+
echo "PKG_CONFIG_PATH=$(brew --prefix curl)/lib/pkgconfig:$(brew --prefix openssl@3)/lib/pkgconfig" >> $GITHUB_ENV
45+
echo "LD_LIBRARY_PATH=$(brew --prefix openssl@3)/lib:$(brew --prefix curl)/lib:$(brew --prefix)/lib" >> $GITHUB_ENV
4346
4447
- name: Build s3cpp
4548
run: |
4649
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON
47-
cmake --build build -j$(nproc)
50+
cmake --build build --target s3cpplib -j$(nproc)
4851
4952
- name: Build benchmark SDKs
5053
working-directory: benchmark

‎benchmark/Makefile‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ AWS_SDK_CPP_INCLUDES := $(foreach dep,$(AWS_SDK_CPP_DEPS),-I$(shell brew --prefi
3333
GOOGLE_BENCHMARK_PREFIX := $(shell brew --prefix google-benchmark)
3434

3535
$(CPP_LIB): | $(BUILD_DIR)
36-
c++ -std=c++26 -shared -fPIC \
36+
c++ -std=c++23 -shared -fPIC \
3737
$(AWS_SDK_CPP_INCLUDES) \
3838
aws-sdk-cpp/task.cpp \
3939
-o $@ \
@@ -45,23 +45,23 @@ $(RUST_LIB): | $(BUILD_DIR)
4545
mv ./aws-sdk-rust/target/release/librust$(so_ext) $(BUILD_DIR)/.
4646

4747
$(S3CPP_LIB): | $(BUILD_DIR)
48-
cmake -S .. -B ../build-release -DCMAKE_BUILD_TYPE=Release
49-
cmake --build ../build-release
50-
c++ -std=c++26 -shared -fPIC -I../src s3cpp/task.cpp -o $(BUILD_DIR)/libs3cpp$(so_ext) \
48+
cmake -S .. -B ../build-release -DCMAKE_BUILD_TYPE=Release -DCMAKE_POSITION_INDEPENDENT_CODE=ON
49+
cmake --build ../build-release --target s3cpplib
50+
c++ -std=c++23 -shared -fPIC -I../src s3cpp/task.cpp -o $(BUILD_DIR)/libs3cpp$(so_ext) \
5151
../build-release/lib/libs3cpp.a $(shell pkg-config --libs libcurl libcrypto)
5252

5353
$(IMPLEMENTATIONS_INC): $(GO_LIB) $(CPP_LIB) $(RUST_LIB) $(S3CPP_LIB) | $(BUILD_DIR)
5454
printf '"./%s",\n' $(GO_LIB) $(CPP_LIB) $(RUST_LIB) $(S3CPP_LIB) > $@
5555

5656
bench: $(IMPLEMENTATIONS_INC) $(GO_LIB) $(CPP_LIB) $(RUST_LIB) $(S3CPP_LIB) | $(BUILD_DIR)
57-
c++ -std=c++26 -I../src benchmark.cpp -o $(BUILD_DIR)/bench \
57+
c++ -std=c++23 -I../src benchmark.cpp -o $(BUILD_DIR)/bench \
5858
-I$(GOOGLE_BENCHMARK_PREFIX)/include -L$(GOOGLE_BENCHMARK_PREFIX)/lib \
5959
../build/lib/libs3cpp.a -lbenchmark $(shell pkg-config --libs libcurl libcrypto)
6060
./$(BUILD_DIR)/bench
6161

6262

6363
test: $(IMPLEMENTATIONS_INC) $(GO_LIB) $(S3CPP_LIB) $(RUST_LIB) | $(BUILD_DIR)
64-
c++ -std=c++26 -I../src test.cpp -o $(BUILD_DIR)/test ../build-release/lib/libs3cpp.a $(shell pkg-config --libs libcurl libcrypto)
64+
c++ -std=c++23 -I../src test.cpp -o $(BUILD_DIR)/test ../build-release/lib/libs3cpp.a $(shell pkg-config --libs libcurl libcrypto)
6565
./$(BUILD_DIR)/test
6666

6767

0 commit comments

Comments
 (0)