From d73e4c7f06790ffb28487aacf10dc2a7a4c0f159 Mon Sep 17 00:00:00 2001 From: Alan Liddell Date: Thu, 11 May 2023 10:24:15 -0400 Subject: [PATCH 1/2] add build action for unsupported platforms --- .github/workflows/unsupported_build.yml | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/unsupported_build.yml diff --git a/.github/workflows/unsupported_build.yml b/.github/workflows/unsupported_build.yml new file mode 100644 index 0000000..24bfd8c --- /dev/null +++ b/.github/workflows/unsupported_build.yml @@ -0,0 +1,42 @@ +name: Unsupported platform build + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + strategy: + matrix: + build_type: [ Debug, Release ] + platform: [ "ubuntu-latest", "macos-latest" ] + + runs-on: ${{ matrix.platform }} + + permissions: + actions: write + + steps: + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.10.0 + with: + access_token: ${{ github.token }} + + - uses: actions/checkout@v3 + with: + submodules: recursive + + - name: CMake + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} + + - name: Build + run: | + cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} + cpack --config ${{github.workspace}}/build/CPackConfig.cmake -C ${{matrix.build_type}} -G ZIP + + - uses: actions/upload-artifact@v3 + with: + name: ${{matrix.platform}} ${{matrix.build_type}} binaries + path: ${{github.workspace}}/*.zip From 1902fbeb397ee82ed88334ef08ba7dfee7bc1443 Mon Sep 17 00:00:00 2001 From: Alan Liddell Date: Thu, 11 May 2023 10:38:01 -0400 Subject: [PATCH 2/2] Skip tests for unsupported build (no EGrabber.h) --- .github/workflows/unsupported_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/unsupported_build.yml b/.github/workflows/unsupported_build.yml index 24bfd8c..9e2c6e9 100644 --- a/.github/workflows/unsupported_build.yml +++ b/.github/workflows/unsupported_build.yml @@ -29,7 +29,7 @@ jobs: submodules: recursive - name: CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DNOTEST=1 - name: Build run: |