From a979a7bf74de3f6a5c2a2dfec8aa8bcf1e930c05 Mon Sep 17 00:00:00 2001 From: Alexsander Falcucci Date: Sat, 21 Sep 2024 18:11:42 +0200 Subject: [PATCH] ci: optimize ci configurations to improve build times - comment out font cache restart in `ci.yml` - change `rust_backtrace` to `full` for cargo test in `ci.yml` --- .github/workflows/ci.yml | 56 ++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e40e5c2..e290ab0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -203,33 +203,33 @@ jobs: scoop bucket add nerd-fonts scoop install Monaspace Monaspace-NF FiraCode-NF ProFont-NF CascadiaCode-NF Noto-NF - - name: Restart font cache - if: matrix.os == 'windows-2022' - shell: powershell - run: | - Add-Type -TypeDefinition @" - using System; - using System.Runtime.InteropServices; - public class FontHelper { - [DllImport("gdi32.dll")] - public static extern int AddFontResource(string lpFileName); - } - "@ - $fontPaths = @( - "$env:USERPROFILE\scoop\apps\Monaspace-NF\current\*.ttf", - "$env:USERPROFILE\scoop\apps\FiraCode-NF\current\*.ttf", - "$env:USERPROFILE\scoop\apps\ProFont-NF\current\*.ttf", - "$env:USERPROFILE\scoop\apps\CascadiaCode-NF\current\*.ttf", - "$env:USERPROFILE\scoop\apps\Noto-NF\current\*.ttf" - ) - foreach ($path in $fontPaths) { - if (Test-Path -Path $path) { - foreach ($font in Get-ChildItem -Path $path) { - [FontHelper]::AddFontResource($font.FullName) | Out-Null - } - } - } - Write-Output "Fonts have been registered." + # - name: Restart font cache + # if: matrix.os == 'windows-2022' + # shell: powershell + # run: | + # Add-Type -TypeDefinition @" + # using System; + # using System.Runtime.InteropServices; + # public class FontHelper { + # [DllImport("gdi32.dll")] + # public static extern int AddFontResource(string lpFileName); + # } + # "@ + # $fontPaths = @( + # "$env:USERPROFILE\scoop\apps\Monaspace-NF\current\*.ttf", + # "$env:USERPROFILE\scoop\apps\FiraCode-NF\current\*.ttf", + # "$env:USERPROFILE\scoop\apps\ProFont-NF\current\*.ttf", + # "$env:USERPROFILE\scoop\apps\CascadiaCode-NF\current\*.ttf", + # "$env:USERPROFILE\scoop\apps\Noto-NF\current\*.ttf" + # ) + # foreach ($path in $fontPaths) { + # if (Test-Path -Path $path) { + # foreach ($font in Get-ChildItem -Path $path) { + # [FontHelper]::AddFontResource($font.FullName) | Out-Null + # } + # } + # } + # Write-Output "Fonts have been registered." - name: Install Fonts run: | @@ -259,7 +259,7 @@ jobs: fi - name: cargo test - run: RUST_BACKTRACE=1 cargo test --workspace --locked --all-features + run: RUST_BACKTRACE=full cargo test --workspace --locked --all-features build: name: cargo build