No description
- Zig 99.4%
- Shell 0.3%
- Dockerfile 0.3%
| bin | upgrade default to 0.14.0 | |
| src/ci_build_runner | add injection code | |
| templates | output timeout time | |
| .gitignore | add zig-pkg to gitignore | |
| .gitlab-ci.yml | upgrade to zig 0.15.X | |
| build.zig | upgrade to zig 0.15.X | |
| build.zig.zon | upgrade anyzig | |
| BuildVersion.zig | upgrade to zig 0.15.X | |
| Dockerfile | upgrade to zig 0.15.X | |
| README.md | add readme | |
Zig Container
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.