From 7eacac56dc6b2486ed48275903e043a66c4b7029 Mon Sep 17 00:00:00 2001 From: Curve Date: Sun, 12 May 2024 15:31:09 +0200 Subject: [PATCH] refactor(ci): prefer ninja over make --- docker/Dockerfile | 2 +- docker/build.sh | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 0183498..9742e52 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -4,7 +4,7 @@ FROM fedora:38 # Build dependencies -RUN dnf install -y make automake gcc gcc-c++ kernel-devel cmake git nodejs libstdc++-static +RUN dnf install -y make automake gcc gcc-c++ kernel-devel cmake git nodejs libstdc++-static ninja-build RUN dnf install -y pipewire-devel pipewire-libs pulseaudio-libs-devel pipewire-pulseaudio # PNPM diff --git a/docker/build.sh b/docker/build.sh index be4d771..cbf7e2b 100755 --- a/docker/build.sh +++ b/docker/build.sh @@ -1,6 +1,13 @@ #!/bin/bash +# Ensure pnpm is loaded source /root/.bashrc +# Let's get to work! cd /work + +# Export Threads for Make and Ninja +export MAKEFLAGS=-j$(nproc) +export PARALLEL_LEVEL=$(nproc) + pnpm install --ignore-scripts && pnpm run install