Skip to content

Commit

Permalink
chore: consolidate font installation commands and variables
Browse files Browse the repository at this point in the history
- add a new font list to the environment variables
- replace multiple font installation commands with a single command using the new font list
  • Loading branch information
falcucci committed Sep 19, 2024
1 parent 3a9fd70 commit 65b2fc0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 65b2fc0

Please sign in to comment.