File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 26
26
ruby : ${{ fromJson(needs.ruby-versions.outputs.versions) }}
27
27
include :
28
28
- { os: ubuntu-24.04-arm, ruby: 3.4 }
29
+ - { os: ubuntu-latest , ruby: 3.4, env: "JSON_DISABLE_SIMD=1" }
29
30
- { os: macos-13, ruby: 3.4 }
30
31
- { os: windows-latest , ruby: mswin } # ruby/ruby windows CI
31
32
- { os: ubuntu-latest , ruby: jruby-9.4 } # Ruby 3.1
49
50
bundle config --without benchmark
50
51
bundle install
51
52
52
- - run : rake compile
53
+ - run : rake compile ${{ matrix.env }}
53
54
54
- - run : rake test JSON_COMPACT=1
55
+ - run : rake test JSON_COMPACT=1 ${{ matrix.env }}
55
56
56
57
- run : rake build
57
58
Original file line number Diff line number Diff line change 7
7
append_cflags ( "-std=c99" )
8
8
$defs << "-DJSON_GENERATOR"
9
9
10
- if enable_config ( 'generator-use-simd' , default = true )
10
+ if enable_config ( 'generator-use-simd' , default = ! ENV [ "JSON_DISABLE_SIMD" ] )
11
11
if RbConfig ::CONFIG [ 'host_cpu' ] =~ /^(arm.*|aarch64.*)/
12
12
# Try to compile a small program using NEON instructions
13
13
if have_header ( 'arm_neon.h' )
31
31
SRC
32
32
$defs. push ( "-DENABLE_SIMD" )
33
33
end
34
-
34
+
35
35
have_header ( 'cpuid.h' )
36
36
end
37
37
You can’t perform that action at this time.
0 commit comments