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 ]
|
2023-01-26 18:41:46 +01:00
|
|
|
workflow_dispatch:
|
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:
|
2023-01-21 19:18:35 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-07 22:21:23 +02:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev
|
|
|
|
|
|
|
|
- name: Configure static library
|
2023-11-30 19:02:38 +01:00
|
|
|
run: cmake -B build-static
|
2021-06-07 22:21:23 +02:00
|
|
|
- name: Build static library
|
|
|
|
run: cmake --build build-static --parallel
|
|
|
|
|
|
|
|
- name: Configure shared library
|
2023-11-30 19:02:38 +01:00
|
|
|
run: cmake -B build-shared -D BUILD_SHARED_LIBS=ON
|
2021-06-07 22:21:23 +02:00
|
|
|
- name: Build shared library
|
|
|
|
run: cmake --build build-shared --parallel
|
|
|
|
|
2021-07-13 21:50:09 +02:00
|
|
|
build-linux-full-clang:
|
|
|
|
name: X11+Wayland (Linux, Clang)
|
2021-06-07 22:21:23 +02:00
|
|
|
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:
|
2023-01-21 19:18:35 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-07 22:21:23 +02:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt update
|
2021-07-13 21:50:09 +02:00
|
|
|
sudo apt install libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev wayland-protocols libwayland-dev libxkbcommon-dev
|
2021-06-07 22:21:23 +02:00
|
|
|
|
|
|
|
- name: Configure static library
|
2023-11-30 19:02:38 +01:00
|
|
|
run: cmake -B build-static -D GLFW_BUILD_WAYLAND=ON
|
2021-06-07 22:21:23 +02:00
|
|
|
- name: Build static library
|
|
|
|
run: cmake --build build-static --parallel
|
|
|
|
|
|
|
|
- name: Configure shared library
|
2023-11-30 19:02:38 +01:00
|
|
|
run: cmake -B build-shared -D GLFW_BUILD_WAYLAND=ON -D BUILD_SHARED_LIBS=ON
|
2021-06-07 22:21:23 +02:00
|
|
|
- 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:
|
2023-01-21 19:18:35 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-07 22:21:23 +02:00
|
|
|
|
|
|
|
- name: Configure static library
|
2023-11-30 19:02:38 +01:00
|
|
|
run: cmake -B build-static
|
2021-06-07 22:21:23 +02:00
|
|
|
- name: Build static library
|
|
|
|
run: cmake --build build-static --parallel
|
|
|
|
|
|
|
|
- name: Configure shared library
|
2023-11-30 19:02:38 +01:00
|
|
|
run: cmake -B build-shared -D BUILD_SHARED_LIBS=ON
|
2021-06-07 22:21:23 +02:00
|
|
|
- name: Build shared library
|
|
|
|
run: cmake --build build-shared --parallel
|
|
|
|
|
2022-03-03 23:15:47 +01:00
|
|
|
build-windows-win32-vs2022:
|
|
|
|
name: Win32 (Windows, VS2022)
|
2021-06-09 16:44:45 +02:00
|
|
|
runs-on: windows-latest
|
|
|
|
env:
|
|
|
|
CFLAGS: /WX
|
|
|
|
steps:
|
2023-01-21 19:18:35 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-09 16:44:45 +02:00
|
|
|
|
|
|
|
- name: Configure static library
|
2023-11-30 19:02:38 +01:00
|
|
|
run: cmake -B build-static -G "Visual Studio 17 2022"
|
2021-06-09 16:44:45 +02:00
|
|
|
- name: Build static library
|
|
|
|
run: cmake --build build-static --parallel
|
|
|
|
|
|
|
|
- name: Configure shared library
|
2023-11-30 19:02:38 +01:00
|
|
|
run: cmake -B build-shared -G "Visual Studio 17 2022" -D BUILD_SHARED_LIBS=ON
|
2021-06-09 16:44:45 +02:00
|
|
|
- name: Build shared library
|
|
|
|
run: cmake --build build-shared --parallel
|
|
|
|
|