Skip to content

lite-xl/lite-xl-build-box

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lite XL Build Box

Important

The Ubuntu variant of the build box is considered obsolete and will be removed in the future. Please migrate to the CentOS variant.

This is a Docker image of the setup used to build Lite XL. It is based on manylinux_2014 with some workarounds to ensure libdecor support.

Installed packages

  • Python 3.11 (provided by manylinux)
  • wget
  • curl
  • zip
  • unzip
  • ccache
  • sudo
  • pip (provided by cp311-cp311)
  • git
  • cmake
  • meson
  • ninja
  • fuse
  • fuse3
  • libX11-devel
  • libXi-devel
  • libXcursor-devel
  • libxkbcommon-devel
  • libXrandr-devel
  • wayland-devel
  • wayland-protocols-devel
  • dbus-devel
  • ibus-devel
  • SDL2-devel
  • clang
  • gcc-aarch64-linux-gnu
  • gcc-c++-aarch64-linux-gnu
  • binutils-aarch64-linux-gnu
  • libdecor-devel (package yanked from Raven Extras)

GitHub Actions

The recommended way of using this build box is via the lite-xl-build-box Action. This action sets up the container environment correctly and runs a script in the container.

- name: Set up QEMU
  uses: docker/setup-qemu-action@v3

- name: Build AppImages
  uses: lite-xl/lite-xl-build-box@v3
  with:
    run: |
      bash scripts/appimage.sh --debug --static --version ${INSTALL_REF} --release
      bash scripts/appimage.sh --debug --nobuild --addons --version ${INSTALL_REF}

- name: Build AppImages (aarch64)
  uses: lite-xl/lite-xl-build-box@v3
  with:
    platform: linux/arm64
    run: |
      bash scripts/appimage.sh --debug --static --version ${INSTALL_REF} --release
      bash scripts/appimage.sh --debug --nobuild --addons --version ${INSTALL_REF}

Step Entrypoint

When using this container image in a step (with docker://), you can pass a script directly, similar to run by specifying entrypoint: /entrypoint.sh. For example:

- name: Build AppImages
  uses: docker://ghcr.io/lite-xl/lite-xl-build-box-manylinux:latest
  with:
    entrypoint: /entrypoint.sh
    args: |
      bash scripts/appimage.sh --debug --static --version ${INSTALL_REF} --release
      bash scripts/appimage.sh --debug --nobuild --addons --version ${INSTALL_REF}

If you don't use the entrypoint, GitHub Actions will concatenate all the lines into a single line.

Instructions for Ubuntu

Installed packages

  • ccache
  • sudo
  • build-essential
  • python3
  • python3-pip
  • git
  • cmake
  • meson
  • ninja
  • libfuse2
  • wayland-protocols
  • libsdl2-dev
  • clang
  • gcc-aarch64-linux-gnu
  • binutils-aarch64-linux-gnu
  • libdecor-0-dev (package yanked from Ubuntu 20.04)

Step Entrypoint

When using this container image (v2.2.0 and above) in a step (with docker://), you can pass a script directly, similar to run by specifying entrypoint: /entrypoint.sh. For example:

- name: Build AppImages
  uses: docker://ghcr.io/lite-xl/lite-xl-build-box:v2.2.0
  with:
    entrypoint: /entrypoint.sh
    args: |
      bash scripts/appimage.sh --debug --static --version ${INSTALL_REF} --release
      bash scripts/appimage.sh --debug --nobuild --addons --version ${INSTALL_REF}

If you don't use the entrypoint, GitHub Actions will concatenate all the lines into a single line.