dasimmet/zig-container
A alpine container with [Anyzig](https://github.com/marler8997/anyzig) for running Ziglang CI jobs
a basic alpine:latest based container image including zig By running anyzig.
Using this image, it is crucial to set the following environment variables to a
path that will be cached, as anyzig
will download the zig compiler on each run
otherwise:
XDG_DATA_HOME: $CI_PROJECT_DIR/.zig-cache/appdata
ZIG_GLOBAL_CACHE_DIR: $CI_PROJECT_DIR/.zig-cache/global
ZIG_LOCAL_CACHE_DIR: $CI_PROJECT_DIR/.zig-cache/local
:$ docker run -it --rm registry.gitlab.com/dasimmet/zig-container:latest zig 0.14.1 zen
anyzig: appdata '/root/.local/share/anyzig'
anyzig: downloading 'https://ziglang.org/download/0.14.1/zig-x86_64-linux-0.14.1.tar.xz'...
anyzig: downloaded zig-0.14.1 to '/root/.cache/zig/p/N-V-__8AAHqaixIK5xkCeDRdXNzskekn9i1dos0md02qAkgD'
* Communicate intent precisely.
* Edge cases matter.
* Favor reading code over writing code.
* Only one obvious way to do things.
* Runtime crashes are better than bugs.
* Compile errors are better than runtime crashes.
* Incremental improvements.
* Avoid local maximums.
* Reduce the amount one must remember.
* Focus on code rather than style.
* Resource allocation may fail; resource deallocation must succeed.
* Memory is a resource.
* Together we serve the users.