Commit b32d4e35 authored by Robert Edmonds's avatar Robert Edmonds

build.yml: The PowerShell line continuation character is the BACKTICK?!

parent 83f9df4e
...@@ -140,13 +140,13 @@ jobs: ...@@ -140,13 +140,13 @@ jobs:
cd ~ cd ~
git clone --depth=1 https://github.com/abseil/abseil-cpp.git -b ${{ env.ABSEIL_VERSION }} abseil git clone --depth=1 https://github.com/abseil/abseil-cpp.git -b ${{ env.ABSEIL_VERSION }} abseil
cd ~/abseil cd ~/abseil
cmake -B build -G "NMake Makefiles" \ cmake -B build -G "NMake Makefiles" `
-DCMAKE_CXX_STANDARD=17 \ -DCMAKE_CXX_STANDARD=17 `
-DCMAKE_INSTALL_PREFIX=~/abseil-bin \ -DCMAKE_INSTALL_PREFIX=~/abseil-bin `
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \ -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} `
-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded${{ matrix.build-type == 'Debug' && 'Debug' || '' }}${{ matrix.shared-lib == 'ON' && 'DLL' || '' }} \ -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded${{ matrix.build-type == 'Debug' && 'Debug' || '' }}${{ matrix.shared-lib == 'ON' && 'DLL' || '' }} `
-DABSL_PROPAGATE_CXX_STD=ON \ -DABSL_PROPAGATE_CXX_STD=ON `
-DBUILD_SHARED_LIBS=${{ matrix.shared-lib }} \ -DBUILD_SHARED_LIBS=${{ matrix.shared-lib }} `
; ;
cmake --build "build" -j4 cmake --build "build" -j4
cmake --build "build" --target install cmake --build "build" --target install
...@@ -155,29 +155,29 @@ jobs: ...@@ -155,29 +155,29 @@ jobs:
cd ~ cd ~
git clone --depth=1 https://github.com/protocolbuffers/protobuf.git -b ${{ env.PROTOBUF_VERSION }} protobuf git clone --depth=1 https://github.com/protocolbuffers/protobuf.git -b ${{ env.PROTOBUF_VERSION }} protobuf
cd ~/protobuf cd ~/protobuf
cmake -B build -G "NMake Makefiles" \ cmake -B build -G "NMake Makefiles" `
-DCMAKE_CXX_STANDARD=17 \ -DCMAKE_CXX_STANDARD=17 `
-DCMAKE_INSTALL_PREFIX=~/protobuf-bin \ -DCMAKE_INSTALL_PREFIX=~/protobuf-bin `
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \ -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} `
-DABSL_PROPAGATE_CXX_STD=ON \ -DABSL_PROPAGATE_CXX_STD=ON `
-Dabsl_ROOT=~/abseil-bin \ -Dabsl_ROOT=~/abseil-bin `
-Dprotobuf_ABSL_PROVIDER=package \ -Dprotobuf_ABSL_PROVIDER=package `
-Dprotobuf_BUILD_EXAMPLES=OFF \ -Dprotobuf_BUILD_EXAMPLES=OFF `
-Dprotobuf_BUILD_LIBUPB=OFF \ -Dprotobuf_BUILD_LIBUPB=OFF `
-Dprotobuf_BUILD_SHARED_LIBS=${{ matrix.shared-lib }} \ -Dprotobuf_BUILD_SHARED_LIBS=${{ matrix.shared-lib }} `
-Dprotobuf_BUILD_TESTS=OFF \ -Dprotobuf_BUILD_TESTS=OFF `
; ;
cmake --build "build" -j4 cmake --build "build" -j4
cmake --build "build" --target install cmake --build "build" --target install
- name: Run cmake tests - name: Run cmake tests
run: | run: |
cmake -B build -G "NMake Makefiles" \ cmake -B build -G "NMake Makefiles" `
-DCMAKE_INSTALL_PREFIX=~/protobuf-c-bin \ -DCMAKE_INSTALL_PREFIX=~/protobuf-c-bin `
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \ -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} `
-DBUILD_TESTS=ON \ -DBUILD_TESTS=ON `
-DBUILD_SHARED_LIBS=${{ matrix.shared-lib }} \ -DBUILD_SHARED_LIBS=${{ matrix.shared-lib }} `
-DProtobuf_ROOT="~/protobuf-bin" \ -DProtobuf_ROOT="~/protobuf-bin" `
-Dabsl_ROOT="~/abseil-bin" \ -Dabsl_ROOT="~/abseil-bin" `
; ;
cmake --build "build" -j3 cmake --build "build" -j3
cmake --build "build" --target test cmake --build "build" --target test
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment