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