File tree Expand file tree Collapse file tree 2 files changed +26
-6
lines changed
actions/install-linux-sgx Expand file tree Collapse file tree 2 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,23 @@ runs:
2121 echo "::error title=⛔ error hint::Only support ubuntu-22.04 for now"
2222 exit 1
2323
24+ - name : prerequisites
25+ shell : bash
26+ run : |
27+ sudo apt update
28+ sudo apt upgrade -y
29+ sudo apt install -y build-essential ocaml automake autoconf libtool wget python3 libssl-dev dkms
30+ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
31+
2432 - name : Create installation directory
2533 shell : bash
2634 run : sudo mkdir -p /opt/intel
2735
28- - name : Download and install SGX SDK on ubuntu-22.04
36+ - name : Download and install SGX SDK on ubuntu-22.04(w/ in-kernel driver)
2937 if : ${{ inputs.os == 'ubuntu-22.04' }}
3038 shell : bash
3139 run : |
32- sudo wget -O sgx_linux_x64_sdk.bin https://download.01.org/intel-sgx/sgx- linux/2.21/ distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.21 .100.1 .bin
40+ sudo wget -O sgx_linux_x64_sdk.bin https://download.01.org/intel-sgx/latest/ linux-latest/ distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.25 .100.3 .bin
3341 sudo chmod +x sgx_linux_x64_sdk.bin
3442 echo 'yes' | sudo ./sgx_linux_x64_sdk.bin
3543 working-directory : /opt/intel
4048 echo "deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/intel-sgx.list
4149 wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | sudo apt-key add -
4250 sudo apt update
43- sudo apt install -y libsgx-launch libsgx-urts
51+ sudo apt install -y libsgx-epid libsgx-quote-ex libsgx-dcap-ql libsgx-enclave-common-dev libsgx-dcap-ql-dev
52+ sudo apt autoremove -y
53+ sudo apt autoclean -y
4454
4555 - name : Source SGX SDK environment
4656 shell : bash
Original file line number Diff line number Diff line change @@ -224,9 +224,11 @@ jobs:
224224 needs : [build_iwasm, build_llvm_libraries]
225225 runs-on : ${{ matrix.os }}
226226 strategy :
227+ fail-fast : true
227228 matrix :
228229 # "fast-interp" because of SIMDE
229- running_mode : ["classic-interp", "aot", "fast-jit"]
230+ # "fast-jit" (workaround)
231+ running_mode : ["classic-interp", "aot"]
230232 test_option :
231233 [$DEFAULT_TEST_OPTIONS, $SIMD_TEST_OPTIONS, $XIP_TEST_OPTIONS]
232234 os : [ubuntu-22.04]
@@ -272,10 +274,18 @@ jobs:
272274 with :
273275 os : ${{ matrix.os }}
274276
275- - name : install for wabt compilation
276- run : sudo apt update && sudo apt install -y ninja-build
277+ # https://github.com/actions/runner-images/issues/6680#issuecomment-2640923706
278+ - name : Increase swapfile
279+ run : |
280+ sudo swapoff -a
281+ sudo fallocate -l 15G /swapfile
282+ sudo chmod 600 /swapfile
283+ sudo mkswap /swapfile
284+ sudo swapon /swapfile
285+ sudo swapon --show
277286
278287 - name : run spec tests
288+ shell : bash
279289 run : |
280290 source /opt/intel/sgxsdk/environment
281291 ./test_wamr.sh ${{ matrix.test_option }} -t ${{ matrix.running_mode }}
You can’t perform that action at this time.
0 commit comments