56
56
57
57
test-openssls :
58
58
name : >-
59
- ${{ matrix.openssl }} ${{ matrix.name_extra || '' }}
59
+ ${{ matrix.openssl }} ${{ matrix.name-extra || '' }}
60
60
runs-on : ${{ matrix.os }}
61
61
strategy :
62
62
fail-fast : false
75
75
- libressl-3.5.3
76
76
- libressl-3.6.1
77
77
- libressl-3.7.0 # Development release
78
- fips_enabled : [ false ]
78
+ fips-enabled : [ false ]
79
79
include :
80
- - { os: ubuntu-latest, ruby: "3.0", openssl: openssl-3.0.8, fips_enabled : true, append_configure : 'enable-fips', name_extra : 'fips' }
80
+ - { os: ubuntu-latest, ruby: "3.0", openssl: openssl-3.0.8, fips-enabled : true, append-configure : 'enable-fips', name-extra : 'fips' }
81
81
steps :
82
82
- name : repo checkout
83
83
uses : actions/checkout@v3
91
91
tar xf ${{ matrix.openssl }}.tar.gz && cd ${{ matrix.openssl }}
92
92
# shared is required for 1.0.x.
93
93
./Configure --prefix=$HOME/.openssl/${{ matrix.openssl }} --libdir=lib \
94
- shared linux-x86_64 ${{ matrix.append_configure }}
94
+ shared linux-x86_64 ${{ matrix.append-configure }}
95
95
make depend
96
96
;;
97
97
libressl-*)
@@ -109,22 +109,22 @@ jobs:
109
109
- name : prepare openssl fips
110
110
run : make install_fips
111
111
working-directory : tmp/build-openssl/${{ matrix.openssl }}
112
- if : matrix.fips_enabled
112
+ if : matrix.fips-enabled
113
113
114
114
- name : set the open installed directory
115
115
run : >
116
116
sed -e "s|OPENSSL_DIR|$HOME/.openssl/${{ matrix.openssl }}|"
117
117
test/openssl/fixtures/ssl/openssl_fips.cnf.tmpl >
118
118
test/openssl/fixtures/ssl/openssl_fips.cnf
119
- if : matrix.fips_enabled
119
+ if : matrix.fips-enabled
120
120
121
121
- name : set openssl config file path for fips.
122
122
run : echo "OPENSSL_CONF=$(pwd)/test/openssl/fixtures/ssl/openssl_fips.cnf" >> $GITHUB_ENV
123
- if : matrix.fips_enabled
123
+ if : matrix.fips-enabled
124
124
125
125
- name : set fips enviornment variable for testing.
126
126
run : echo "TEST_RUBY_OPENSSL_FIPS_ENABLED=true" >> $GITHUB_ENV
127
- if : matrix.fips_enabled
127
+ if : matrix.fips-enabled
128
128
129
129
- name : load ruby
130
130
uses : ruby/setup-ruby@v1
@@ -144,12 +144,12 @@ jobs:
144
144
- name : test
145
145
run : rake test TESTOPTS="-v --no-show-detail-immediately" OSSL_MDEBUG=1
146
146
timeout-minutes : 5
147
- if : ${{ !matrix.fips_enabled }}
147
+ if : ${{ !matrix.fips-enabled }}
148
148
149
149
# Run only the passing tests on the FIPS mode as a temporary workaround.
150
150
# TODO Fix other tests, and run all the tests on FIPS mode.
151
151
- name : test on fips mode
152
152
run : |
153
153
ruby -I./lib -ropenssl \
154
154
-e 'Dir.glob "./test/openssl/{test_fips.rb,test_pkey.rb}", &method(:require)'
155
- if : matrix.fips_enabled
155
+ if : matrix.fips-enabled
0 commit comments