@@ -223,34 +223,31 @@ jobs:
223
223
- name : Build wamrc only for testing samples in aot mode
224
224
if : matrix.iwasm_make_options_run_mode == '$AOT_BUILD_OPTIONS'
225
225
run : |
226
- mkdir build && cd build
227
- cmake ..
228
- cmake --build . --config Release --parallel 4
229
- cp wamrc `pwd`/../../product-mini/platforms/${{ matrix.platform }}/enclave-sample
226
+ cmake -S . -B build
227
+ cmake --build build --config Release --parallel 4
228
+ cp build/wamrc ../product-mini/platforms/${{ matrix.platform }}/enclave-sample
230
229
working-directory : wamr-compiler
231
230
232
- # cmake --build . --config Debug --parallel 4
233
231
- name : Build Sample [file]
234
232
run : |
235
- cd samples/file
236
- mkdir build && cd build
237
- cmake ..
238
- cmake --build . --config Debug --verbose
239
- cp wasm-app/file.wasm `pwd`/../../../product-mini/platforms/${{ matrix.platform }}/enclave-sample
233
+ cmake -S . -B build
234
+ cmake --build build --config Debug --parallel 4
235
+ cp build/wasm-app/file.wasm ../../product-mini/platforms/${{ matrix.platform }}/enclave-sample
236
+ working-directory : samples/file
240
237
241
238
- name : Test Sample [file] in non-aot mode
242
239
if : matrix.iwasm_make_options_run_mode != '$AOT_BUILD_OPTIONS'
243
240
run : |
244
241
source /opt/intel/sgxsdk/environment
245
- ./iwasm -f file.wasm -d .
242
+ ./iwasm --dir=. ./ file.wasm
246
243
working-directory : product-mini/platforms/${{ matrix.platform }}/enclave-sample
247
244
248
245
- name : Test Sample [file] in aot mode
249
246
if : matrix.iwasm_make_options_run_mode == '$AOT_BUILD_OPTIONS'
250
247
run : |
251
248
source /opt/intel/sgxsdk/environment
252
- ./wamrc -sgx -o file.aot file.wasm
253
- ./iwasm -f file.aot -d .
249
+ ./wamrc -sgx -o ./ file.aot ./ file.wasm
250
+ ./iwasm --dir=. ./ file.aot
254
251
working-directory : product-mini/platforms/${{ matrix.platform }}/enclave-sample
255
252
256
253
spec_test_default :
0 commit comments