mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
Added Cygwin builds to CI.
Bringing back Cygwin support! This will add Cygwin builds on windows-latest in our CI. Signed-off-by: b-aaz <b-aazbsd@proton.me>
This commit is contained in:
9
.github/scripts/Cygwin/build.sh
vendored
Executable file
9
.github/scripts/Cygwin/build.sh
vendored
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -x
|
||||||
|
ccache -s
|
||||||
|
meson setup --prefix=/usr -Dxv=false -Dxf86bigfont=true -Dxephyr=true -Dxnest=true -Dxvfb=true -Dxwin=true -Dxorg=true -Dpciaccess=false -Dint10=false -Dglamor=false build
|
||||||
|
meson configure build
|
||||||
|
ninja -C build
|
||||||
|
ccache -s
|
||||||
|
ninja -C build test
|
||||||
|
ninja -C build install
|
||||||
46
.github/workflows/build-xserver.yml
vendored
46
.github/workflows/build-xserver.yml
vendored
@@ -273,6 +273,51 @@ jobs:
|
|||||||
usesh: true
|
usesh: true
|
||||||
release: '10.1'
|
release: '10.1'
|
||||||
run: ./.github/scripts/netbsd/run-xserver-build.sh
|
run: ./.github/scripts/netbsd/run-xserver-build.sh
|
||||||
|
xserver-build-cygwin:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- name: Cygwin packages cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: D:\cygwin-packages
|
||||||
|
key: ${{ runner.os }}-packages
|
||||||
|
restore-keys: ${{ runner.os }}-packages
|
||||||
|
- uses: cygwin/cygwin-install-action@master
|
||||||
|
with:
|
||||||
|
platform: x86_64
|
||||||
|
packages: >-
|
||||||
|
binutils, bison, ccache, flex, gcc-core, meson, ninja,
|
||||||
|
pkg-config, python39, windowsdriproto, xorgproto,
|
||||||
|
libepoxy-devel, libfontenc-devel, libfreetype-devel,
|
||||||
|
libGL-devel, libnettle-devel, libpixman1-devel,
|
||||||
|
libtirpc-devel, libXRes-devel, libXaw-devel, libXdmcp-devel,
|
||||||
|
libXext-devel, libXfont2-devel, libXi-devel,
|
||||||
|
libXinerama-devel, libXmu-devel, libXpm-devel,
|
||||||
|
libXrender-devel, libXtst-devel, libxcb-composite-devel,
|
||||||
|
libxcb-ewmh-devel, libxcb-icccm-devel, libxcb-image-devel,
|
||||||
|
libxcb-keysyms-devel, libxcb-randr-devel,
|
||||||
|
libxcb-render-devel, libxcb-render-util-devel,
|
||||||
|
libxcb-shape-devel, libxcb-util-devel, libxcb-xkb-devel,
|
||||||
|
libxcvt-devel, libxkbfile-devel, font-util,
|
||||||
|
khronos-opengl-registry, python39-lxml, xkbcomp-devel,
|
||||||
|
xkeyboard-config, git
|
||||||
|
|
||||||
|
- name: Cygwin ccache cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: D:\cygwin\home\runneradmin\.ccache
|
||||||
|
key: ${{ runner.os }}-ccache
|
||||||
|
restore-keys: ${{ runner.os }}-ccache
|
||||||
|
- run: git config --global --add safe.directory /cygdrive/d/a/xserver/xserver
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
# Done above as the builtin would use a path for Windows git.
|
||||||
|
set-safe-directory: false
|
||||||
|
- run: |
|
||||||
|
PATH="/usr/bin:$(cygpath "$SYSTEMROOT")/system32"
|
||||||
|
shell: bash --noprofile --norc -e -o igncr '{0}'
|
||||||
|
- run: |
|
||||||
|
bash ./.github/scripts/Cygwin/build.sh
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release pushed tag
|
name: Release pushed tag
|
||||||
@@ -286,6 +331,7 @@ jobs:
|
|||||||
- xserver-build-freebsd
|
- xserver-build-freebsd
|
||||||
- xserver-build-dragonflybsd
|
- xserver-build-dragonflybsd
|
||||||
- xserver-build-netbsd
|
- xserver-build-netbsd
|
||||||
|
- xserver-build-cygwin
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user