refactored vcpkg triplet management

This commit is contained in:
joaquintides
2023-01-16 11:52:42 +01:00
parent 2a2a314c16
commit 03dc8844ad

View File

@@ -16,6 +16,7 @@ jobs:
- name: gcc-x64
compiler: g++-11
architecture: -m64
vcpkgtriplet: x64-linux
sourcefile: main.cpp
download-datafiles: true
compileroptions: -std=c++2a -O3 -DNDEBUG -DCFOA_EMBEDDED_GROUP_ACCESS
@@ -28,6 +29,7 @@ jobs:
- name: clang-x64
compiler: clang++-12
architecture: -m64
vcpkgtriplet: x64-linux
sourcefile: main.cpp
download-datafiles: true
compileroptions: -std=c++2a -O3 -DNDEBUG -DCFOA_EMBEDDED_GROUP_ACCESS
@@ -40,6 +42,7 @@ jobs:
- name: clang-arm64
compiler: clang++
architecture: -m64
vcpkgtriplet: arm64-osx
sourcefile: main.cpp
download-datafiles: true
compileroptions: -std=c++2a -O3 -DNDEBUG -DCFOA_EMBEDDED_GROUP_ACCESS -DNUM_THREADS=8
@@ -52,7 +55,7 @@ jobs:
- name: gcc-x86
compiler: g++-11
architecture: -m32
vcpktriplet: :x86-linux
vcpkgtriplet: x86-linux
sourcefile: main.cpp
download-datafiles: true
compileroptions: -std=c++2a -O3 -DNDEBUG -DCFOA_EMBEDDED_GROUP_ACCESS
@@ -95,13 +98,11 @@ jobs:
- name: Install oneTBB
run: |
if [ -n "${{matrix.xcode_version}}" ]; then
echo "VCPKG_OUTPUT_PATH=$GITHUB_WORKSPACE/vcpkg/installed/arm64-osx" >> $GITHUB_ENV
export PATH=/opt/homebrew/bin:$PATH
cd ~
mkdir -p .vcpkg
touch .vcpkg/vcpkg.path.txt
else
echo "VCPKG_OUTPUT_PATH=$GITHUB_WORKSPACE/vcpkg/installed/x64-linux" >> $GITHUB_ENV
cd $GITHUB_WORKSPACE
mkdir -p .vcpkg
touch .vcpkg/vcpkg.path.txt
@@ -112,7 +113,7 @@ jobs:
cd vcpkg
./bootstrap-vcpkg.sh -disableMetrics
./vcpkg integrate install
./vcpkg install tbb${{matrix.vcpktriplet}}
./vcpkg install tbb:${{matrix.vcpkgtriplet}}
- name: Install libcuckoo
run: |
cd $GITHUB_WORKSPACE
@@ -125,7 +126,7 @@ jobs:
run: |
cd $GITHUB_WORKSPACE
${{matrix.compiler}} --version
${{matrix.compiler}} ${{matrix.sourcefile}} ${{matrix.architecture}} ${{matrix.compileroptions}} -o ${{matrix.outputfile}} -I$GITHUB_WORKSPACE/boost-root -I$VCPKG_OUTPUT_PATH/include -I$GITHUB_WORKSPACE/libcuckoo-root/libcuckoo -I$GITHUB_WORKSPACE/gtl-root/include -L$VCPKG_OUTPUT_PATH/lib -pthread -ltbb -ltbbmalloc
${{matrix.compiler}} ${{matrix.sourcefile}} ${{matrix.architecture}} ${{matrix.compileroptions}} -o ${{matrix.outputfile}} -I$GITHUB_WORKSPACE/boost-root -I$GITHUB_WORKSPACE/vcpkg/installed/${{matrix.vcpkgtriplet}}/include -I$GITHUB_WORKSPACE/libcuckoo-root/libcuckoo -I$GITHUB_WORKSPACE/gtl-root/include -L$GITHUB_WORKSPACE/vcpkg/installed/${{matrix.vcpkgtriplet}}/lib -pthread -ltbb -ltbbmalloc
- name: Set reportfile name
run: |
echo "REPORT_FILE=${{matrix.reportdir}}/${{matrix.sourcefile}}.txt" >> $GITHUB_ENV