diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 167920b..8c017fa 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -88,7 +88,11 @@ jobs: - name: Sol2 Workaround for WebAssembly if: matrix.config.name == 'WebAssembly' run: | - sed -i 's/this->construct(/this->emplace(/g' /home/runner/.conan2/p/sol2*/p/include/sol/optional_implementation.hpp + for file in /home/runner/.conan2/p/sol2*/p/include/sol/optional_implementation.hpp; do + if [[ -f "$file" ]]; then + sed -i 's/this->construct(std::forward(args)...);/this->emplace(std::forward(args)...);/' "$file" + fi + done - name: Configure run: cmake .. -DCMAKE_TOOLCHAIN_FILE="conan_toolchain.cmake" -DCMAKE_BUILD_TYPE=Release