Home

Awesome

static-tools GitHub Actions

Building static binaries of some tools using an Alpine Linux chroot with musl libc:

Static AppImage runtime

PLEASE NOTE: Do NOT add additional external dependencies or files. Everything shall be implemented in one file, runtime.c.

PLEASE NOTE: Do NOT add a complicated "build system" (like autotools, CMake,...) other than the existing simple Makefile and bash.

Building locally

Binaries are provided on GitHub Releases. Should you prefer to build locally or on GitHub Codespaces, the following will build the contents of this repository in an Alpine container:

export ARCHITECTURE=x86_64
./chroot_build.sh

This whole process takes only a few seconds on GitHub Codespaces.

How to build static binaries