Skip to content

Commit

Permalink
Forwarding CXX name
Browse files Browse the repository at this point in the history
  • Loading branch information
armfazh committed Nov 30, 2019
1 parent 0f0829b commit e9d2c40
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/oncici.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ jobs:
build:
name: Benchmarking
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [ [gcc,g++], [clang,clang++] ]
steps:
- uses: actions/checkout@master
- name: Building
env:
CC: ${{ matrix.compiler[0] }}
CXX: ${{ matrix.compiler[1] }}
run: |
mkdir build
cd build
Expand All @@ -17,11 +23,11 @@ jobs:
- name: Benchmarking
run: |
cd build
bin/gbench --benchmark_out=timings.txt --benchmark_out_format=console
bin/gbench --benchmark_out=timings_${{ matrix.compiler[0] }}.txt --benchmark_out_format=console
- uses: actions/upload-artifact@v1
with:
name: Timings
path: build/timings.txt
path: build/timings_${{ matrix.compiler[0] }}.txt
test:
name: Testing
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions bench/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ set(GBENCH_VERSION "v1.5.0")
ExternalProject_Add(benchmark-download
URL "https://api.github.com/repos/google/benchmark/tarball/${GBENCH_VERSION}"
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}
-DCMAKE_CXX_COMPILER:FILEPATH=${CMAKE_CXX_COMPILER}
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DCMAKE_BUILD_TYPE=Release
-DBENCHMARK_ENABLE_TESTING=OFF
Expand Down
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ExternalProject_Add(googletest-download
URL "https://api.github.com/repos/google/googletest/tarball/${GTEST_VERSION}"
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DCMAKE_CXX_COMPILER:FILEPATH=${CMAKE_CXX_COMPILER}
TEST_COMMAND ""
UPDATE_COMMAND ""
)
Expand Down

0 comments on commit e9d2c40

Please sign in to comment.