@@ -223,34 +223,31 @@ jobs:
223223 - name : Build wamrc only for testing samples in aot mode
224224 if : matrix.iwasm_make_options_run_mode == '$AOT_BUILD_OPTIONS'
225225 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
230229 working-directory : wamr-compiler
231230
232- # cmake --build . --config Debug --parallel 4
233231 - name : Build Sample [file]
234232 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
240237
241238 - name : Test Sample [file] in non-aot mode
242239 if : matrix.iwasm_make_options_run_mode != '$AOT_BUILD_OPTIONS'
243240 run : |
244241 source /opt/intel/sgxsdk/environment
245- ./iwasm -f file.wasm -d .
242+ ./iwasm --dir=. ./ file.wasm
246243 working-directory : product-mini/platforms/${{ matrix.platform }}/enclave-sample
247244
248245 - name : Test Sample [file] in aot mode
249246 if : matrix.iwasm_make_options_run_mode == '$AOT_BUILD_OPTIONS'
250247 run : |
251248 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
254251 working-directory : product-mini/platforms/${{ matrix.platform }}/enclave-sample
255252
256253 spec_test_default :
0 commit comments