2021-06-07 22:21:23 +02:00
|
|
|
name: Build
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
2021-06-09 16:48:34 +02:00
|
|
|
branches: [ ci, master, latest, 3.3-stable ]
|
2021-06-07 22:21:23 +02:00
|
|
|
permissions:
|
|
|
|
statuses: write
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-linux-x11-clang:
|
|
|
|
name: X11 (Linux, Clang)
|
|
|
|
runs-on: ubuntu-latest
|
2021-06-09 16:44:45 +02:00
|
|
|
env:
|
|
|
|
CC: clang
|
|
|
|
CFLAGS: -Werror
|
2021-06-07 22:21:23 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
|
|
|
|
|
|
|
|
- name: Configure static library
|
|
|
|
run: cmake -S . -B build-static
|
|
|
|
- name: Build static library
|
|
|
|
run: cmake --build build-static --parallel
|
|
|
|
|
|
|
|
- name: Configure shared library
|
|
|
|
run: cmake -S . -B build-shared -D BUILD_SHARED_LIBS=ON
|
|
|
|
- name: Build shared library
|
|
|
|
run: cmake --build build-shared --parallel
|
|
|
|
|
|
|
|
build-linux-wayland-clang:
|
|
|
|
name: Wayland (Linux, Clang)
|
|
|
|
runs-on: ubuntu-latest
|
2021-06-09 16:44:45 +02:00
|
|
|
env:
|
|
|
|
CC: clang
|
|
|
|
CFLAGS: -Werror
|
2021-06-07 22:21:23 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
2021-06-25 00:14:38 +02:00
|
|
|
sudo apt install wayland-protocols libwayland-dev libxkbcommon-dev extra-cmake-modules
|
2021-06-07 22:21:23 +02:00
|
|
|
|
|
|
|
- name: Configure static library
|
|
|
|
run: cmake -S . -B build-static -D GLFW_USE_WAYLAND=ON
|
|
|
|
- name: Build static library
|
|
|
|
run: cmake --build build-static --parallel
|
|
|
|
|
|
|
|
- name: Configure shared library
|
|
|
|
run: cmake -S . -B build-shared -D GLFW_USE_WAYLAND=ON -D BUILD_SHARED_LIBS=ON
|
|
|
|
- name: Build shared library
|
|
|
|
run: cmake --build build-shared --parallel
|
|
|
|
|
|
|
|
build-linux-null-clang:
|
|
|
|
name: Null (Linux, Clang)
|
|
|
|
runs-on: ubuntu-latest
|
2021-06-09 16:44:45 +02:00
|
|
|
env:
|
|
|
|
CC: clang
|
|
|
|
CFLAGS: -Werror
|
2021-06-07 22:21:23 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install libosmesa6-dev
|
|
|
|
|
|
|
|
- name: Configure static library
|
|
|
|
run: cmake -S . -B build-static -D GLFW_USE_OSMESA=ON
|
|
|
|
- name: Build static library
|
|
|
|
run: cmake --build build-static --parallel
|
|
|
|
|
|
|
|
- name: Configure shared library
|
|
|
|
run: cmake -S . -B build-shared -D GLFW_USE_OSMESA=ON -D BUILD_SHARED_LIBS=ON
|
|
|
|
- name: Build shared library
|
|
|
|
run: cmake --build build-shared --parallel
|
|
|
|
|
|
|
|
build-macos-cocoa-clang:
|
|
|
|
name: Cocoa (macOS, Clang)
|
|
|
|
runs-on: macos-latest
|
|
|
|
env:
|
2021-06-09 16:44:45 +02:00
|
|
|
CFLAGS: -Werror
|
2021-06-07 22:21:23 +02:00
|
|
|
MACOSX_DEPLOYMENT_TARGET: 10.8
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Configure static library
|
|
|
|
run: cmake -S . -B build-static
|
|
|
|
- name: Build static library
|
|
|
|
run: cmake --build build-static --parallel
|
|
|
|
|
|
|
|
- name: Configure shared library
|
|
|
|
run: cmake -S . -B build-shared -D BUILD_SHARED_LIBS=ON
|
|
|
|
- name: Build shared library
|
|
|
|
run: cmake --build build-shared --parallel
|
|
|
|
|
2021-06-09 16:44:45 +02:00
|
|
|
build-windows-win32-vs2019:
|
|
|
|
name: Win32 (Windows, VS2019)
|
|
|
|
runs-on: windows-latest
|
|
|
|
env:
|
|
|
|
CFLAGS: /WX
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Configure static library
|
|
|
|
run: cmake -S . -B build-static -G "Visual Studio 16 2019"
|
|
|
|
- name: Build static library
|
|
|
|
run: cmake --build build-static --parallel
|
|
|
|
|
|
|
|
- name: Configure shared library
|
|
|
|
run: cmake -S . -B build-shared -G "Visual Studio 16 2019" -D BUILD_SHARED_LIBS=ON
|
|
|
|
- name: Build shared library
|
|
|
|
run: cmake --build build-shared --parallel
|
|
|
|
|