Raise CI runner to ubuntu 22.04 (#4191)

update workflows and scripts for Ubuntu 22.04 compatibility. It includes
  - install Intel SGX SDK 2.25
  - use a reusable action to install sgx required
  - keep improve error handling in AOT compilation process in runtest.py

add a workaround to fix receiving a shutdown signal problem. Refers to https://github.com/actions/runner-images/issues/6680 and https://github.com/actions/runner-images/discussions/7188
This commit is contained in:
liang.he
2025-04-17 15:07:46 +08:00
committed by GitHub
parent 955fce5664
commit fc1527eacd
9 changed files with 122 additions and 201 deletions

View File

@ -1541,11 +1541,10 @@ if __name__ == "__main__":
if test_aot:
new_module_aot = os.path.join(tempfile.gettempdir(), name_new + ".aot")
r = compile_wasm_to_aot(new_module, new_module_aot, True, opts, r)
try:
assert_prompt(r, ['Compile success'], opts.start_timeout, True)
except:
raise Exception("compile wasm to aot failed")
compile_wasm_to_aot(new_module, new_module_aot, None, opts, r)
except Exception as e:
raise Exception(f"compile wasm to aot failed. {e}")
# add aot module into temp_file_repo[]
temp_file_repo.append(new_module_aot)
else:

View File

@ -361,7 +361,7 @@ function sightglass_test()
function setup_wabt()
{
WABT_VERSION=1.0.36
WABT_VERSION=1.0.37
if [ ${WABT_BINARY_RELEASE} == "YES" ]; then
echo "download a binary release and install"
local WAT2WASM=${WORK_DIR}/wabt/out/gcc/Release/wat2wasm