From 65b2fc0d0114bbed9f9398af4c93220244962441 Mon Sep 17 00:00:00 2001 From: Alexsander Falcucci Date: Thu, 19 Sep 2024 22:48:53 +0200 Subject: [PATCH] chore: consolidate font installation commands and variables - add a new font list to the environment variables - replace multiple font installation commands with a single command using the new font list --- .github/workflows/ci.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c9b348a..00cd955 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ defaults: env: FONTS: "Monaspace FiraCode ProFont CascadiaCode Noto" + BREW_FONTS: "font-monaspace font-fira-code-nerd-font font-profont-nerd-font font-caskaydia-cove-nerd-font font-monaspace-nerd-font font-noto-nerd-font" VERSION: "v3.2.1" EXTENSION: ".zip" @@ -114,12 +115,7 @@ jobs: ) if [[ $RUNNER_OS == "macOS" ]]; then curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh && brew upgrade - brew install font-monaspace - brew install font-fira-code-nerd-font - brew install font-profont-nerd-font - brew install font-caskaydia-cove-nerd-font - brew install font-monaspace-nerd-font - brew install font-noto-nerd-font + brew install ${{ env.BREW_FONTS }} elif [[ $RUNNER_OS == "Linux" ]]; then FONT_DIR="${HOME}/.local/share/fonts" mkdir -p "$FONT_DIR"