diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26656ee249..05f5e6d864 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,8 +31,6 @@ jobs: - name: Configure run: | - New-Item -ItemType Directory build | Out-Null - Set-Location build cmake ` -G "${{ matrix.platform.generator }}" -A "${{ matrix.platform.arch }}" ` -DPLASMA_BUILD_TESTS=ON ` @@ -42,7 +40,7 @@ jobs: -DPLASMA_VCPKG_NUGET_OWNER="${{ github.repository_owner }}" ` -DPLASMA_VCPKG_NUGET_TOKEN="${{ secrets.GITHUB_TOKEN }}" ` -DPLASMA_VCPKG_NUGET_RW=TRUE ` - .. + -S . -B build - name: Build run: | @@ -98,7 +96,62 @@ jobs: - name: Configure run: | cmake \ - -GNinja \ + -G Ninja \ + -DUSE_VCPKG=ON \ + -DCMAKE_BUILD_TYPE=${{ matrix.cfg.type }} \ + -DPLASMA_BUILD_TESTS=ON \ + -DPLASMA_BUILD_TOOLS=ON \ + -DPLASMA_EXTERNAL_RELEASE=${{ matrix.cfg.external }} \ + -DPLASMA_VCPKG_NUGET_SOURCE="https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \ + -DPLASMA_VCPKG_NUGET_OWNER="${{ github.repository_owner }}" \ + -DPLASMA_VCPKG_NUGET_TOKEN="${{ secrets.GITHUB_TOKEN }}" \ + -DPLASMA_VCPKG_NUGET_RW=TRUE \ + -S . -B build + + - name: Build + run: | + cmake --build build -j 2 + + - name: Test + run: | + cmake --build build --target check -j 2 + + - name: Install + run: | + cmake --build build --target install -j 2 + + + macos: + runs-on: macos-latest + name: ${{ matrix.platform.str }}-${{ matrix.cfg.str }} + strategy: + matrix: + platform: + - { str: macos-x64 } + cfg: + - { external: OFF, type: RelWithDebInfo, str: internal-release } + - { external: OFF, type: Debug, str: internal-debug } + - { external: ON, type: RelWithDebInfo, str: external-release } + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + submodules: true + + - name: Install dependencies + run: | + brew update + brew install \ + autoconf \ + cairo \ + libtool \ + nasm \ + qt5 + + - name: Configure + run: | + cmake \ -DUSE_VCPKG=ON \ -DCMAKE_BUILD_TYPE=${{ matrix.cfg.type }} \ -DPLASMA_BUILD_TESTS=ON \ @@ -109,6 +162,8 @@ jobs: -DPLASMA_VCPKG_NUGET_TOKEN="${{ secrets.GITHUB_TOKEN }}" \ -DPLASMA_VCPKG_NUGET_RW=TRUE \ -S . -B build + env: + CMAKE_PREFIX_PATH: "/usr/local/opt/qt" - name: Build run: | diff --git a/Sources/Plasma/PubUtilLib/plPipeline/GL/plGLDeviceRef.h b/Sources/Plasma/PubUtilLib/plPipeline/GL/plGLDeviceRef.h index a7dfa73f47..4edc9091f7 100644 --- a/Sources/Plasma/PubUtilLib/plPipeline/GL/plGLDeviceRef.h +++ b/Sources/Plasma/PubUtilLib/plPipeline/GL/plGLDeviceRef.h @@ -45,7 +45,11 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #include "HeadSpin.h" #include "hsGDeviceRef.h" -#include +#if HS_BUILD_FOR_MACOS +# include +#else +# include +#endif class plGLDeviceRef : public hsGDeviceRef {