Skip to content

Commit

Permalink
cambrian
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Midjich committed Nov 20, 2024
0 parents commit bd3a790
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

name: Build
on:
#schedule:
# - cron: "21 21 * * *"
push:
branches: ["main"]

env:
REGISTRY: ghcr.io
IMAGE_NAME: "fedora-atomic-hyprland"
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}


jobs:
podman-build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/[email protected]

- name: Build container image
uses: redhat-actions/[email protected]
with:
context: "."
containerfiles: Containerfile
image: ${{ env.IMAGE_NAME }}
layers: false
oci: true

- name: Push to ghcr.io
uses: redhat-actions/[email protected]
with:
image: ${{ env.IMAGE_NAME }}
tags: "latest"
registry: ${{ env.IMAGE_REGISTRY }}
username: ${{ env.REGISTRY_USER }}
password: ${{ env.REGISTRY_PASSWORD }}
17 changes: 17 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#FROM quay.io/fedora/fedora-sway-atomic:latest
FROM quay.io/fedora/fedora-coreos:testing

RUN dnf -y install \
curl git tmux \
# Hyprland build dependencies
ninja-build cmake meson gcc-c++ libxcb-devel libX11-devel pixman-devel \
wayland-protocols-devel cairo-devel pango-devel wayland-devel libdrm-devel \
libxkbcommon-devel systemd-devel libseat-devel mesa-libEGL-devel \
libinput-devel xcb-util-wm-devel xorg-x11-server-Xwayland-devel \
mesa-libgbm-devel xcb-util-renderutil-devel \
hwdata libdisplay-info-devel libliftoff-devel 'dnf5-command(builddep)' && \
dnf -y builddep hyprland && \
pushd /tmp && curl -LO https://github.com/hyprwm/Hyprland/releases/latest/download/source-v0.45.2.tar.gz && \
tar -xvaf source-v0.45.2.tar.gz && pushd /tmp/hyprland-source && \
meson _build && ninja -C _build && sudo ninja -C _build install && \
cp example/hyprland.desktop /usr/share/wayland-sessions/
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Fedora Atomic Hyprland image

This is a bootable image of Fedora Atomic Sway with the latest Hyprland Window Manager built and installed.

0 comments on commit bd3a790

Please sign in to comment.