2023-12-10 20:26:25 +01:00
|
|
|
name: "Setup base"
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
INSTALL_XORG_PKGS:
|
|
|
|
description: 'Install xorg dependencies'
|
|
|
|
required: false
|
|
|
|
default: false
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Get required pacman pkgs
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2024-03-09 17:52:59 +01:00
|
|
|
sed -i -e "1i [extra-testing]\nInclude = /etc/pacman.d/mirrorlist" "/etc/pacman.conf"
|
2023-12-10 20:26:25 +01:00
|
|
|
sed -i 's/SigLevel = Required DatabaseOptional/SigLevel = Optional TrustAll/' /etc/pacman.conf
|
|
|
|
pacman --noconfirm --noprogressbar -Syyu
|
|
|
|
pacman --noconfirm --noprogressbar -Sy \
|
|
|
|
base-devel \
|
|
|
|
cairo \
|
|
|
|
clang \
|
|
|
|
cmake \
|
|
|
|
git \
|
|
|
|
glm \
|
|
|
|
glslang \
|
|
|
|
go \
|
2024-02-18 16:00:34 +01:00
|
|
|
hyprlang \
|
2024-04-20 14:25:29 +02:00
|
|
|
hyprcursor \
|
2023-12-10 20:26:25 +01:00
|
|
|
jq \
|
|
|
|
libc++ \
|
|
|
|
libdisplay-info \
|
|
|
|
libdrm \
|
|
|
|
libepoxy \
|
|
|
|
libfontenc \
|
|
|
|
libglvnd \
|
|
|
|
libinput \
|
|
|
|
libliftoff \
|
|
|
|
libxcvt \
|
|
|
|
libxfont2 \
|
|
|
|
libxkbcommon \
|
|
|
|
libxkbfile \
|
|
|
|
lld \
|
|
|
|
meson \
|
|
|
|
ninja \
|
|
|
|
pango \
|
|
|
|
pixman \
|
|
|
|
pkgconf \
|
2024-04-20 14:25:29 +02:00
|
|
|
pugixml \
|
2023-12-10 20:26:25 +01:00
|
|
|
scdoc \
|
|
|
|
seatd \
|
|
|
|
systemd \
|
|
|
|
tomlplusplus \
|
|
|
|
wayland \
|
|
|
|
wayland-protocols \
|
|
|
|
xcb-util-errors \
|
|
|
|
xcb-util-renderutil \
|
2024-03-09 17:52:59 +01:00
|
|
|
xcb-util-wm \
|
2024-04-12 20:50:33 +02:00
|
|
|
xcb-util \
|
|
|
|
xcb-util-image \
|
2024-03-09 17:52:59 +01:00
|
|
|
libzip \
|
|
|
|
librsvg
|
|
|
|
|
2024-04-20 14:25:29 +02:00
|
|
|
- name: Get hyprwayland-scanner-git
|
2024-03-09 17:52:59 +01:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2024-04-20 14:25:29 +02:00
|
|
|
git clone https://github.com/hyprwm/hyprwayland-scanner --recursive
|
|
|
|
cd hyprwayland-scanner
|
2024-03-09 17:52:59 +01:00
|
|
|
cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build
|
|
|
|
cmake --build ./build --config Release --target all -j`nproc 2>/dev/null || getconf NPROCESSORS_CONF`
|
|
|
|
cmake --install build
|
2023-12-10 20:26:25 +01:00
|
|
|
|
|
|
|
- name: Get Xorg pacman pkgs
|
|
|
|
shell: bash
|
|
|
|
if: inputs.INSTALL_XORG_PKGS == 'true'
|
|
|
|
run: |
|
|
|
|
pacman --noconfirm --noprogressbar -Sy \
|
|
|
|
xorg-fonts-encodings \
|
|
|
|
xorg-server-common \
|
|
|
|
xorg-setxkbmap \
|
|
|
|
xorg-xkbcomp \
|
|
|
|
xorg-xwayland
|
|
|
|
|
|
|
|
- name: Checkout Hyprland
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
# Fix an issue with actions/checkout where the checkout repo is not mark as safe
|
|
|
|
- name: Mark directory as safe for git
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
git config --global --add safe.directory /__w/Hyprland/Hyprland
|