@@ -138,11 +138,22 @@ jobs:
138
138
- name : cargo xwin build for `aarch64-pc-windows-msvc`
139
139
run : cargo xwin build -p aws-lc-rs --release --target aarch64-pc-windows-msvc
140
140
141
- aws-lc-rs-windows-mingw :
141
+ aws-lc-rs-windows-cross :
142
142
if : github.repository_owner == 'aws'
143
- name : x86_64-pc-windows-gnu
143
+ name : ${{ matrix.target }}
144
144
runs-on : windows-latest
145
+ strategy :
146
+ fail-fast : false
147
+ matrix :
148
+ target : [ 'x86_64-pc-windows-gnu', 'i686-pc-windows-msvc', 'i686-pc-windows-gnu' ]
145
149
steps :
150
+ - if : ${{ matrix.target == 'i686-pc-windows-gnu' }}
151
+ name : Set up MinGW
152
+ shell : bash
153
+ run : |
154
+ choco install mingw --x86
155
+ echo "C:/ProgramData/mingw64/mingw32/bin/" >> "$GITHUB_PATH"
156
+ echo "export COMPILER_PATH=C:/ProgramData/mingw64/mingw32/bin/" >> "$GITHUB_ENV"
146
157
- uses : ilammy/setup-nasm@v1
147
158
- uses : actions/checkout@v3
148
159
with :
@@ -151,11 +162,13 @@ jobs:
151
162
id : toolchain
152
163
with :
153
164
toolchain : stable
154
- target : x86_64-pc-windows-gnu
155
- - name : Debug Test on `x86_64-pc-windows-gnu`
156
- run : cargo test -p aws-lc-rs --target x86_64-pc-windows-gnu --features bindgen
157
- - name : Release test on `x86_64-pc-windows-gnu`
158
- run : cargo test -p aws-lc-rs --release --target x86_64-pc-windows-gnu --features bindgen
165
+ target : ${{ matrix.target }}
166
+ - name : Debug Test on `${{ matrix.target }}`
167
+ shell : bash
168
+ run : cargo test -p aws-lc-rs --target ${{ matrix.target }} --features bindgen
169
+ - name : Release test on `${{ matrix.target }}`
170
+ shell : bash
171
+ run : cargo test -p aws-lc-rs --release --target ${{ matrix.target }} --features bindgen
159
172
160
173
aws-lc-rs-windows-arm64 :
161
174
if : github.repository_owner == 'aws'
0 commit comments