From abd93d34b6e880acd1944bab9e27e7fc77790f3e Mon Sep 17 00:00:00 2001 From: RafaDdS Date: Thu, 2 May 2024 23:43:32 -0300 Subject: [PATCH] Fixing github workflow --- .github/workflows/main.yml | 6 ++---- src/OpenCVGodot.cpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d99ad2c..21e0322 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: build_type: ['Debug', 'Release'] config: - { name: '🍏 macOS Clang', os: macos-latest } - - { name: '🐧 Linux GCC', os: ubuntu-latest } + - { name: '🐧 Linux GCC', os: ubuntu-20.04 } - { name: '🪟 Windows MSVC', os: windows-latest } name: 🛠 Build / ${{ matrix.config.name }} (${{ matrix.build_type }}) @@ -46,7 +46,6 @@ jobs: run: | sudo apt-get update sudo apt-get install -y ccache ninja-build - sudo apt-get install python2.7 - name: Install Dependencies (Windows) if: matrix.config.os == 'windows-latest' @@ -63,11 +62,10 @@ jobs: max-size: '10G' key: ${{ matrix.config.os }}-${{ matrix.build_type }} - - name: Install OpenCV + - name: Setup OpenCV uses: Dovyski/setup-opencv-action@v1.1 with: opencv-version: '4.2.0' - install-deps: false - name: Configure run: > diff --git a/src/OpenCVGodot.cpp b/src/OpenCVGodot.cpp index 4ab2a39..a14e06b 100644 --- a/src/OpenCVGodot.cpp +++ b/src/OpenCVGodot.cpp @@ -221,7 +221,7 @@ Ref OpenCVGodot::bitwise_not( Ref mat, Ref mask ) mask = Ref( memnew( Mat ) ); } - try + try { cv::bitwise_not( mat->get_mat(), outMat, mask->get_mat() ); }