From 27ef13c64869f634a6cfb8e209b5da8c796596f4 Mon Sep 17 00:00:00 2001 From: "Li, Xun" Date: Tue, 28 May 2024 13:39:46 +0800 Subject: [PATCH 1/2] Add workflow file and CI action script for Ubuntu 22.04 Signed-off-by: Li, Xun --- .github/workflows/c-cpp.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/c-cpp.yml diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 00000000..68058628 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,36 @@ +name: C/C++ CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + actions: read + checks: read + contents: read + issues: write + pull-requests: write + +jobs: + build: + + runs-on: ubuntu-22.04 + + steps: + - uses: actions/checkout@v4 + - name: install dependencies + run: sudo apt-get install libcurl4-openssl-dev libboost-dev libboost-system-dev libboost-thread-dev + - name: init submodule + run: git submodule update --init --recursive + - name: download prebuilt + run: QuoteGeneration/download_prebuilt.sh + - name: download SGXSDK + run: | + curl https://download.01.org/intel-sgx/sgx-linux/2.24/distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.24.100.3.bin -o ./sgx_linux_x64_sdk.bin + chmod +x ./sgx_linux_x64_sdk.bin + - name: install SGXSDK + run: ./sgx_linux_x64_sdk.bin <<< "yes" + - name: build + run: source ./sgxsdk/environment; make all From 9c093d8a938773dd1d0bd0055043e317fa31c1ab Mon Sep 17 00:00:00 2001 From: "Li, Xun" Date: Wed, 29 May 2024 09:18:15 +0800 Subject: [PATCH 2/2] fixup! Add workflow file and CI action script for Ubuntu 22.04 Signed-off-by: Li, Xun --- .github/workflows/c-cpp.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 68058628..9b2dbb93 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -28,9 +28,9 @@ jobs: run: QuoteGeneration/download_prebuilt.sh - name: download SGXSDK run: | - curl https://download.01.org/intel-sgx/sgx-linux/2.24/distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.24.100.3.bin -o ./sgx_linux_x64_sdk.bin - chmod +x ./sgx_linux_x64_sdk.bin + wget -r -l1 -np -nd --accept 'sgx_linux_x64_sdk_*.bin' https://download.01.org/intel-sgx/latest/linux-latest/distro/ubuntu22.04-server/ + chmod +x ./sgx_linux_x64_sdk_*.bin - name: install SGXSDK - run: ./sgx_linux_x64_sdk.bin <<< "yes" + run: ./sgx_linux_x64_sdk_*.bin <<< "yes" - name: build run: source ./sgxsdk/environment; make all