-
Notifications
You must be signed in to change notification settings - Fork 171
38 lines (33 loc) · 984 Bytes
/
c-cpp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 update
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: |
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"
- name: build
run: source ./sgxsdk/environment; make all