Skip to content

fontist fails to install on windows-latestย #17

@FriesischScott

Description

@FriesischScott

I'm trying to install fonts in windows-latest runners but the action fails to install fontist with ERROR: Failed to build gem native extension..

Full log:

2025-05-09T08:16:43.1385869Z ##[group]Run fontist/setup-fontist@v2
2025-05-09T08:16:43.1386198Z with:
2025-05-09T08:16:43.1386379Z   fontist-version: latest
2025-05-09T08:16:43.1386730Z   fontist-token: ***
2025-05-09T08:16:43.1386904Z   cache: true
2025-05-09T08:16:43.1387090Z   cache-dependency-path: manifest.y{a,}ml
2025-05-09T08:16:43.1387324Z ##[endgroup]
2025-05-09T08:16:44.2982851Z Resolved version: v1.21.2
2025-05-09T08:16:44.2995951Z Fontist v1.21.2 not found in tool cache.
2025-05-09T08:16:44.3000847Z Attempting to restore Fontist installatioin from workflow cache: fontist-1.21.2-Windows-installation
2025-05-09T08:16:44.5933556Z ##[warning]Failed to restore: Cache service responded with 422
2025-05-09T08:16:44.5939832Z Fontist v1.21.2 not found in workflow cache.
2025-05-09T08:16:44.5940140Z Using RubyGems to install Fontist v1.21.2...
2025-05-09T08:16:44.5940426Z Installing to D:\a\_temp\0.3843542267929567\install-dir
2025-05-09T08:16:44.5940816Z Installing binaries to D:\a\_temp\0.3843542267929567\bindir
2025-05-09T08:17:58.1531679Z ERROR:  Error installing fontist:
2025-05-09T08:17:58.1532220Z 	ERROR: Failed to build gem native extension.
2025-05-09T08:17:58.1532543Z 
2025-05-09T08:17:58.1533021Z     current directory: D:/a/_temp/0.3843542267929567/install-dir/gems/bigdecimal-3.1.9/ext/bigdecimal
2025-05-09T08:17:58.1534896Z C:/hostedtoolcache/windows/Ruby/3.0.7/x64/bin/ruby.exe -I C:/hostedtoolcache/windows/Ruby/3.0.7/x64/lib/ruby/3.0.0 -r ./siteconf20250509-1692-s0b6ta.rb extconf.rb
2025-05-09T08:17:58.1536143Z checking for __builtin_clz()... yes
2025-05-09T08:17:58.1536499Z checking for __builtin_clzl()... yes
2025-05-09T08:17:58.1536856Z checking for __builtin_clzll()... yes
2025-05-09T08:17:58.1537198Z checking for float.h... yes
2025-05-09T08:17:58.1537508Z checking for math.h... yes
2025-05-09T08:17:58.1537801Z checking for stdbool.h... yes
2025-05-09T08:17:58.1538118Z checking for stdlib.h... yes
2025-05-09T08:17:58.1538425Z checking for x86intrin.h... yes
2025-05-09T08:17:58.1538831Z checking for _lzcnt_u32() in x86intrin.h... no
2025-05-09T08:17:58.1539253Z checking for _lzcnt_u64() in x86intrin.h... no
2025-05-09T08:17:58.1539651Z checking for intrin.h... yes
2025-05-09T08:17:58.1539995Z checking for __lzcnt() in intrin.h... no
2025-05-09T08:17:58.1540386Z checking for __lzcnt64() in intrin.h... no
2025-05-09T08:17:58.1541062Z checking for _BitScanReverse() in intrin.h... yes
2025-05-09T08:17:58.1541681Z checking for _BitScanReverse64() in intrin.h... yes
2025-05-09T08:17:58.1542191Z checking for labs() in stdlib.h... yes
2025-05-09T08:17:58.1542572Z checking for llabs() in stdlib.h... yes
2025-05-09T08:17:58.1542979Z checking for finite() in math.h... yes
2025-05-09T08:17:58.1543213Z checking for isfinite() in math.h... no
2025-05-09T08:17:58.1543444Z checking for ruby/atomic.h... yes
2025-05-09T08:17:58.1543691Z checking for ruby/internal/has/builtin.h... yes
2025-05-09T08:17:58.1543976Z checking for ruby/internal/static_assert.h... yes
2025-05-09T08:17:58.1544276Z checking for rb_rational_num() in ruby.h... yes
2025-05-09T08:17:58.1544560Z checking for rb_rational_den() in ruby.h... yes
2025-05-09T08:17:58.1544825Z checking for rb_complex_real() in ruby.h... yes
2025-05-09T08:17:58.1545095Z checking for rb_complex_imag() in ruby.h... yes
2025-05-09T08:17:58.1545369Z checking for rb_opts_exception_p() in ruby.h... yes
2025-05-09T08:17:58.1545649Z checking for rb_category_warn() in ruby.h... yes
2025-05-09T08:17:58.1545944Z checking for RB_WARN_CATEGORY_DEPRECATED in ruby.h... yes
2025-05-09T08:17:58.1546312Z creating Makefile
2025-05-09T08:17:58.1546604Z 
2025-05-09T08:17:58.1547125Z current directory: D:/a/_temp/0.3843542267929567/install-dir/gems/bigdecimal-3.1.9/ext/bigdecimal
2025-05-09T08:17:58.1547532Z make DESTDIR\= clean
2025-05-09T08:17:58.1547642Z 
2025-05-09T08:17:58.1547876Z current directory: D:/a/_temp/0.3843542267929567/install-dir/gems/bigdecimal-3.1.9/ext/bigdecimal
2025-05-09T08:17:58.1548242Z make DESTDIR\=
2025-05-09T08:17:58.1551020Z generating bigdecimal-x64-mingw32.def
2025-05-09T08:17:58.1551624Z make: *** No rule to make target '/C/hostedtoolcache/windows/Ruby/3.0.7/x64/include/ruby-3.0.0/ruby.h', needed by 'bigdecimal.o'.  Stop.
2025-05-09T08:17:58.1552063Z 
2025-05-09T08:17:58.1552137Z make failed, exit code 2
2025-05-09T08:17:58.1552410Z 
2025-05-09T08:17:58.1553010Z Gem files will remain installed in D:/a/_temp/0.3843542267929567/install-dir/gems/bigdecimal-3.1.9 for inspection.
2025-05-09T08:17:58.1553884Z Results logged to D:/a/_temp/0.3843542267929567/install-dir/extensions/x64-mingw32/3.0.0/bigdecimal-3.1.9/gem_make.out
2025-05-09T08:17:58.1702249Z Temporarily enhancing PATH for MSYS/MINGW...
2025-05-09T08:17:58.1702756Z Building native extensions. This could take a while...
2025-05-09T08:17:58.2132460Z file:///D:/a/_actions/fontist/setup-fontist/v2/dist/main.js:79378
2025-05-09T08:17:58.2135777Z     error = new Error(message);
2025-05-09T08:17:58.2136566Z             ^
2025-05-09T08:17:58.2137640Z 
2025-05-09T08:17:58.2138735Z Error: Command failed with exit code 1: gem install fontist --version 1.21.2 --no-document --install-dir D:\a\_temp\0.3843542267929567\install-dir --bindir D:\a\_temp\0.3843542267929567\bindir
2025-05-09T08:17:58.2139853Z     at makeError (file:///D:/a/_actions/fontist/setup-fontist/v2/dist/main.js:79378:13)
2025-05-09T08:17:58.2140647Z     at handlePromise (file:///D:/a/_actions/fontist/setup-fontist/v2/dist/main.js:80185:29)
2025-05-09T08:17:58.2141563Z     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
2025-05-09T08:17:58.2142351Z     at async file:///D:/a/_actions/fontist/setup-fontist/v2/dist/main.js:80404:3 {
2025-05-09T08:17:58.2143163Z   shortMessage: 'Command failed with exit code 1: gem install fontist --version 1.21.2 --no-document --install-dir D:\\a\\_temp\\0.3843542267929567\\install-dir --bindir D:\\a\\_temp\\0.3843542267929567\\bindir',
2025-05-09T08:17:58.2144813Z   command: 'gem install fontist --version 1.21.2 --no-document --install-dir D:\\a\\_temp\\0.3843542267929567\\install-dir --bindir D:\\a\\_temp\\0.3843542267929567\\bindir',
2025-05-09T08:17:58.2145818Z   escapedCommand: 'gem install fontist --version 1.21.2 --no-document --install-dir "D:\\a\\_temp\\0.3843542267929567\\install-dir" --bindir "D:\\a\\_temp\\0.3843542267929567\\bindir"',
2025-05-09T08:17:58.2146408Z   exitCode: 1,
2025-05-09T08:17:58.2146562Z   signal: undefined,
2025-05-09T08:17:58.2146750Z   signalDescription: undefined,
2025-05-09T08:17:58.2146954Z   stdout: undefined,
2025-05-09T08:17:58.2147119Z   stderr: undefined,
2025-05-09T08:17:58.2147323Z   cwd: 'D:\\a\\latex-action-setup\\latex-action-setup',
2025-05-09T08:17:58.2147576Z   failed: true,
2025-05-09T08:17:58.2147733Z   timedOut: false,
2025-05-09T08:17:58.2147890Z   isCanceled: false,
2025-05-09T08:17:58.2148059Z   killed: false
2025-05-09T08:17:58.2148200Z }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions