mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-26 00:21:57 +00:00
Test with old cmake, Windows & macOS
This commit is contained in:
parent
e983f5e0ee
commit
af5eac1089
81
.github/workflows/cmake.yml
vendored
81
.github/workflows/cmake.yml
vendored
@ -79,4 +79,83 @@ jobs:
|
||||
cp $GITHUB_WORKSPACE/glew-cmake/sub-directory-test.cmake CMakeLists.txt
|
||||
cmake .
|
||||
cmake --build .
|
||||
|
||||
|
||||
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 .
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user