From e2fdafd2f396a396458180b9fd2621c357dfaa97 Mon Sep 17 00:00:00 2001 From: "Li, Xun" Date: Tue, 28 May 2024 10:55:16 +0800 Subject: [PATCH] add CI action script for Ubuntu 22.04 Signed-off-by: Li, Xun --- .github/workflows/c-cpp.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 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..11e151d5 --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,34 @@ +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: init submodule + run: git submodule update --init + - 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