Skip to content

Commit d5cfa0f

Browse files
authored
Add workflow file and CI action script for Ubuntu 22.04 (#408)
Signed-off-by: Li, Xun <xun.li@intel.com>
1 parent 45554a7 commit d5cfa0f

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/c-cpp.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
permissions:
10+
actions: read
11+
checks: read
12+
contents: read
13+
issues: write
14+
pull-requests: write
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-22.04
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: install dependencies
24+
run: sudo apt-get install libcurl4-openssl-dev libboost-dev libboost-system-dev libboost-thread-dev
25+
- name: init submodule
26+
run: git submodule update --init --recursive
27+
- name: download prebuilt
28+
run: QuoteGeneration/download_prebuilt.sh
29+
- name: download SGXSDK
30+
run: |
31+
wget -r -l1 -np -nd --accept 'sgx_linux_x64_sdk_*.bin' https://download.01.org/intel-sgx/latest/linux-latest/distro/ubuntu22.04-server/
32+
chmod +x ./sgx_linux_x64_sdk_*.bin
33+
- name: install SGXSDK
34+
run: ./sgx_linux_x64_sdk_*.bin <<< "yes"
35+
- name: build
36+
run: source ./sgxsdk/environment; make all

0 commit comments

Comments
 (0)