Skip to content

Commit

Permalink
add CI action script for Ubuntu 22.04
Browse files Browse the repository at this point in the history
Signed-off-by: Li, Xun <xun.li@intel.com>
  • Loading branch information
llly committed May 28, 2024
1 parent 45554a7 commit e2fdafd
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e2fdafd

Please sign in to comment.