diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index f064e12..b793141 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -79,4 +79,83 @@ jobs: cp $GITHUB_WORKSPACE/glew-cmake/sub-directory-test.cmake CMakeLists.txt cmake . cmake --build . - \ No newline at end of file + + build_2_8: + # The CMake configure and build commands are platform agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: ubuntu-latest + container: ubuntu:14.04 + + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + run: apt update && apt install -y cmake gcc libgl1-mesa-dev libx11-dev libxext-dev + + - name: Configure CMake + shell: bash + run: cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build test + shell: bash + run: cmake --build . + + - name: Check alias + shell: bash + run: test -e lib/libGLEW.a + + build_3_10: + # The CMake configure and build commands are platform agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: ubuntu-latest + container: ubuntu:18.04 + + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + run: apt update && apt install -y cmake gcc libgl1-mesa-dev libx11-dev libxext-dev + + - name: Configure CMake + shell: bash + run: cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build test + shell: bash + run: cmake --build . + + - name: Check alias + shell: bash + run: test -e lib/libGLEW.a + + build_mac: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + + - name: Configure CMake + shell: bash + run: cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build test + shell: bash + run: cmake --build . + + build_windows: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Configure CMake + shell: bash + run: cmake . -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build test + shell: bash + run: cmake --build . diff --git a/CMakeLists.txt b/CMakeLists.txt index d012f36..af80c65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,7 +127,7 @@ function(set_representative_target TARGET) DEBUG_POSTFIX d) # Windows & macOS use case-insensetive FS. do not create symbolic link - if(NOT WIN32 and NOT APPLE) + if(NOT (WIN32 OR APPLE)) get_target_property(TARGET_TYPE ${TARGET} TYPE) if(TARGET_TYPE STREQUAL STATIC_LIBRARY) set(EXT ".a")