Skip to content

Commit 264ab65

Browse files
committed
chore: revamp font installation process for linux
- add new fonts to the font installation process - modify the font installation steps for linux to update existing fonts rather than re-installing them
1 parent 1e74fa5 commit 264ab65

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ jobs:
8888

8989
- name: Install Fonts
9090
run: |
91+
declare -a fonts=(
92+
"FiraCode"
93+
"Hack"
94+
"JetBrainsMono"
95+
"CascadiaCode"
96+
"UbuntuMono"
97+
)
9198
if [[ $RUNNER_OS == "macOS" ]]; then
9299
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh && brew upgrade
93100
brew install font-monaspace
@@ -97,13 +104,6 @@ jobs:
97104
brew install font-monaspace-nerd-font
98105
brew install font-noto-nerd-font
99106
elif [[ $RUNNER_OS == "Linux" ]]; then
100-
declare -a fonts=(
101-
"FiraCode"
102-
"Hack"
103-
"JetBrainsMono"
104-
"CascadiaCode"
105-
"UbuntuMono"
106-
)
107107
VERSION="v3.2.1"
108108
EXTENSION=".zip"
109109
FONT_DIR="${HOME}/.local/share/fonts"
@@ -114,7 +114,7 @@ jobs:
114114
DOWNLOAD_URL="https://github.com/ryanoasis/nerd-fonts/releases/download/${VERSION}/${ZIP_FILE}"
115115
echo "Downloading and installing '$font'..."
116116
wget --quiet "$DOWNLOAD_URL" -O "$ZIP_FILE"
117-
unzip -q "$ZIP_FILE" -d "$FONT_DIR"
117+
unzip -oq "$ZIP_FILE" -d "$FONT_DIR"
118118
rm "$ZIP_FILE"
119119
echo "'$font' installed successfully."
120120
done

0 commit comments

Comments
 (0)