changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > infra / skelfile

changeset 299: ad9493172356
parent: 4b7478f58f15
child: 070a5baf24b9
author: Richard Westhaver <ellis@rwest.io>
date: Thu, 20 Jun 2024 00:13:51 +0000
permissions: -rw-r--r--
description: gencgc
1 ;;; skelfile --- infra skelfile -*- mode: skel; -*-
2 :name "infra"
3 :author "Richard Westhaver <ellis@rwest.io>"
4 :version "0.1.0"
5 :description "The Compiler Company Infrastructure"
6 :tags (:infra)
7 :license "MPL"
8 :vc (:hg "https://vc.compiler.company/comp/infra")
9 :docs ((:org "readme"))
10 :scripts "scripts"
11 :stash #p".stash"
12 :store #p"/usr/local/share/store"
13 :rules
14 ((check () #$./check.sh$#)
15  (clean () #$rm -rvf .stash$#)
16  (tmp () #$mkdir -pv .stash/tmp$#)
17  (src () #$mkdir -pv .stash/src$#)
18  (bin () #$mkdir -pv .stash/bin$#)
19  ;; src
20  (repos (src tmp) #$cd .stash/tmp && curl -O https://packy.compiler.company/src/comp.tar.zst && \
21  unzstd comp.tar.zst && tar -xf comp.tar -C ../src && \
22  mv ../src/hg/* ../src/ && rm -rf ../src/hg comp.tar$#)
23  (packy-repos (src) #$cd .stash && curl -O https://packy.compiler.company/src/packy.tar.zst && \
24  unzstd packy.tar.zst && tar -xf packy.tar -C src && \
25  rm -rf packy.tar$#)
26  ;; containers
27  (archlinux () #$podman build -f .stash/src/pod/Containerfile.archlinux . -t localhost/archlinux$#)
28  (alpine () #$podman build -f .stash/src/pod/Containerfile.alpine . -t localhost/alpine$#)
29  (ubuntu () #$podman build -f .stash/src/pod/Containerfile.alpine . -t localhost/alpine$#)
30  (dev () #$podman build -f .stash/src/pod/Containerfile.dev . -t localhost/dev$#)
31  (worker () #$podman build -f .stash/src/pod/Containerfile.worker . -t localhost/worker$#)
32  (operator () #$podman build -f .stash/src/pod/Containerfile.operator . -t localhost/operator$#)
33  (vc () #$podman build -f .stash/src/pod/Containerfile.vc . -t localhost/vc$#)
34  (core () #$podman build -f .stash/src/pod/Containerfile.core . -t localhost/core$#)
35  (containers (archlinux alpine ubuntu dev worker operator vc core))
36  ;; programs
37  (bootstrap () #$./bootstrap.sh$#)
38  (emacs (src) #$./scripts/get-emacs.sh$#
39  #$cd .stash/src/emacs && ./autogen.sh$#
40  #$./scripts/build-emacs.sh$#)
41  (emacs-mini (src) #$./scripts/get-emacs.sh$#
42  #$cd .stash/src/emacs && ./autogen.sh$#
43  #$./scripts/build-emacs-mini.sh$#)
44  (rocksdb (src) #$scripts/get-rocksdb.sh$#
45  #$cd .stash/src/rocksdb && make shared_lib DISABLE_JEMALLOC=1$#)
46  (rocksdb-static (src) #$scripts/get-rocksdb.sh$#
47  #$cd .stash/src/rocksdb && make static_lib DISABLE_JEMALLOC=1$#)
48  (sbcl (src) #$scripts/get-sbcl.sh$#
49  #$cd .stash/src/sbcl &&
50  echo '"2.4.5"' > version.lisp-expr &&
51  ./make.sh --dynamic-space-size=8Gb --without-gencgc --with-mark-region-gc --fancy$#)
52  (sbcl-docs (sbcl) #$cd .stash/src/sbcl/doc/manual && make$#)
53  (sbcl-gencgc (src) #$cd .stash/src/sbcl &&
54  ./make.sh --fancy$#)
55  (sbcl-shared () #$cd .stash/src/sbcl && sh make-shared-library.sh$#)
56  (quicklisp () #$cd .stash && curl -O https://beta.quicklisp.org/quicklisp.lisp$#
57  #$./scripts/quicklisp-install.sh$#)
58  (stumpwm (src) #$./scripts/get-stumpwm.sh$#
59  #$cd .stash/src/stumpwm && ./autogen.sh && ./configure && make$#)
60  (nyxt (src) #$./scripts/get-nyxt.sh$#
61  #$cd .stash/src/nyxt && git submodule update --init && make all$#)
62  (scryer-prolog (src) #$./scripts/get-scryer-prolog.sh$#
63  #$cd .stash/src/scryer-prolog && cargo build --release$#)
64  (tree-sitter (src) #$./scripts/get-tree-sitter.sh$#)
65  (linux () #$mkdir -pv .stash/src/linux$#
66  #$gpg --export autosigner@ torvalds@ gregkh@ > .stash/src/linux/keyring.gpg$#
67  #$./scripts/get-linux.sh $(uname -r | cut -d- -f1) .stash .stash/src/linux/keyring.gpg$#
68  #$cd scripts && unxz .stash/src/linux.tar.xz &&
69  tar -xvf .stash/src/linux.tar $(uname -r | cut -d- -f1)$#
70  #$cd .stash/src/linux && make mrproper -j &&
71  zcat /proc/config.gz > .config && yes N | make localmodconfig$#)
72  (xcaddy () #$go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest$#)
73  (caddy (xcaddy) #$xcaddy build --output .stash/bin/caddy --with github.com/mholt/caddy-webdav$#)
74  (rust () #$scripts/get-rust.sh$#)
75  (rust-docs (rust) #$cd .stash/src/rust && ./x doc$#)
76  (ublk () #$scripts/get-ublksrv.sh$#
77  #$cd .stash/src/ublksrv && autoreconf -i && ./configure && make$#)
78  (ublk-install () #$cd .stash/src/ublksrv && make install$#)
79  ;; ref: https://github.com/BLAKE3-team/BLAKE3/tree/master/c#building
80  (blake3 () #$scripts/get-blake3.sh$#
81  #$cd .stash/src/blake3/c && gcc -shared -O3 -o libblake3.so blake3.c blake3_dispatch.c blake3_portable.c \
82  blake3_sse2_x86-64_unix.S blake3_sse41_x86-64_unix.S blake3_avx2_x86-64_unix.S \
83  blake3_avx512_x86-64_unix.S$#)
84  (blake3-install () #$cd .stash/src/blake3/c && cp libblake3.so /usr/local/lib/ && cp blake3.h /usr/local/include/$#)
85  ;; install
86  (tree-sitter-langs (src) #$PREFIX=.stash ./scripts/tree-sitter-langs.sh$#)
87  (cargo-tools () #$scripts/install-cargo-tools.sh$#)
88  (rustup () #$curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y$#)
89  (sbcl-install () #$cd .stash/src/sbcl && INSTALL_ROOT=/usr/local sh install.sh$#)
90  (emacs-install () #$cd .stash/src/emacs && make install$#)
91  (rocksdb-install () #$cd .stash/src/rocksdb && make install-shared &&
92  cp -r include/* /usr/local/include/$#)
93  (stumpwm-install () #$cd .stash/src/stumpwm && make install$#)
94  ;; dist
95  (emacs-mini-dist () #$scripts/dist-emacs-binary.sh emacs-mini$#)
96  (emacs-dist () #$scripts/dist-emacs-binary.sh$#)
97  (sbcl-dist () #$scripts/dist-sbcl-binary.sh$#)
98  (rocksdb-dist () #$scripts/dist-rocksdb-binary.sh$#)
99  (stumpwm-dist () #$scripts/dist-stumpwm-binary.sh$#)
100  (dist (rocksdb-dist sbcl-dist) #$scripts/dist-rocksdb-source.sh
101  scripts/dist-sbcl-source.sh$#))