objective categorical abstract machine language personal data server
65
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use cache mounts for deps & dune build cache

futurGH 281e08ba 28d5cf23

+11 -3
+4
.github/workflows/build.yml
··· 27 27 push: true 28 28 tags: ghcr.io/futurgh/pegasus:${{ github.sha }}-amd64 29 29 build-args: GIT_REV=${{ github.sha }} 30 + cache-from: type=gha,scope=amd64 31 + cache-to: type=gha,scope=amd64,mode=max 30 32 31 33 build-arm64: 32 34 runs-on: ubuntu-24.04-arm ··· 49 51 push: true 50 52 tags: ghcr.io/futurgh/pegasus:${{ github.sha }}-arm64 51 53 build-args: GIT_REV=${{ github.sha }} 54 + cache-from: type=gha,scope=arm64 55 + cache-to: type=gha,scope=arm64,mode=max 52 56 53 57 merge: 54 58 runs-on: ubuntu-latest
+7 -3
Dockerfile
··· 28 28 RUN bash -c "source $NVM_DIR/nvm.sh && pnpm install --frozen-lockfile" 29 29 30 30 ENV DUNE_CACHE="enabled" 31 - RUN opam install dune.$DUNE_VERSION 32 - RUN opam exec dune pkg lock 33 - RUN bash -c "source $NVM_DIR/nvm.sh && opam exec dune build -- --release --stop-on-first-error" 31 + RUN --mount=type=cache,target=/home/opam/.opam/download-cache,uid=1000,gid=1000 \ 32 + --mount=type=cache,target=/home/opam/.cache/dune,uid=1000,gid=1000 \ 33 + opam install dune.$DUNE_VERSION 34 + RUN --mount=type=cache,target=/home/opam/.cache/dune,uid=1000,gid=1000 \ 35 + opam exec dune pkg lock 36 + RUN --mount=type=cache,target=/home/opam/.cache/dune,uid=1000,gid=1000 \ 37 + bash -c "source $NVM_DIR/nvm.sh && opam exec dune build -- --release --stop-on-first-error" 34 38 35 39 FROM debian:12 AS run 36 40