Skip to content

Commit

Permalink
Merge pull request #23 from itzmeanjan/use-std-copy
Browse files Browse the repository at this point in the history
Switch to using `std::copy`
  • Loading branch information
itzmeanjan committed Dec 3, 2023
2 parents faef1bd + dd4d82e commit 04ac27b
Show file tree
Hide file tree
Showing 6 changed files with 212 additions and 621 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/test_ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Collects inspiration from https://github.com/itzmeanjan/dilithium/blob/15c2280f9448b3631a571ee2f33f8b0c695d4788/.github/workflows/test_ci.yml
name: Test SHA3 Hash and Extendable Output Functions using CI

on:
Expand All @@ -8,21 +9,22 @@ on:

jobs:
build:

runs-on: ubuntu-22.04
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v3
- name: Setup Compiler
run: |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
- name: Get CMake
run: sudo apt-get install cmake
# From https://github.com/marketplace/actions/actions-setup-cmake
- name: Setup CMake
uses: jwlawson/[email protected]
with:
cmake-version: 'latest'
- name: Setup Google-Test
run: |
pushd ~
git clone https://github.com/google/googletest.git -b v1.13.0
git clone https://github.com/google/googletest.git -b v1.14.0
pushd googletest
mkdir build
pushd build
Expand All @@ -32,7 +34,5 @@ jobs:
popd
popd
popd
- name: Execute Tests
run: make
- name: Cleanup
run: make clean
- name: Execute Tests on ${{matrix.os}}
run: make -j
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ $(TEST_BINARY): $(TEST_OBJECTS)
$(CXX) $(OPT_FLAGS) $(LINK_FLAGS) $^ $(TEST_LINK_FLAGS) -o $@

test: $(TEST_BINARY)
./$<
./$< --gtest_shuffle --gtest_random_seed=0

$(BENCHMARK_BUILD_DIR)/%.o: $(BENCHMARK_DIR)/%.cpp $(BENCHMARK_BUILD_DIR)
$(CXX) $(CXX_FLAGS) $(WARN_FLAGS) $(OPT_FLAGS) $(I_FLAGS) -c $< -o $@
Expand All @@ -62,7 +62,7 @@ $(BENCHMARK_BINARY): $(BENCHMARK_OBJECTS)

benchmark: $(BENCHMARK_BINARY)
# Must *not* build google-benchmark with libPFM
./$< --benchmark_min_warmup_time=.1 --benchmark_enable_random_interleaving=true --benchmark_repetitions=8 --benchmark_min_time=0.1s --benchmark_counters_tabular=true --benchmark_display_aggregates_only=true
./$< --benchmark_min_warmup_time=.1 --benchmark_enable_random_interleaving=true --benchmark_repetitions=10 --benchmark_min_time=0.1s --benchmark_counters_tabular=true --benchmark_display_aggregates_only=true

$(PERF_BINARY): $(PERF_OBJECTS)
$(CXX) $(OPT_FLAGS) $(LINK_FLAGS) $^ $(PERF_LINK_FLAGS) -o $@
Expand Down
Loading

0 comments on commit 04ac27b

Please sign in to comment.