-
Notifications
You must be signed in to change notification settings - Fork 16
52 lines (39 loc) · 1.55 KB
/
ci.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: "CCF App Template CI"
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-cpp-app-sgx:
runs-on: ubuntu-20.04
container: ghcr.io/microsoft/ccf/app/dev/sgx:ccf-5.0.0
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build app (SGX)
run: mkdir -p build && cd build && CC="clang-11" CXX="clang++-11" cmake -GNinja -DCOMPILE_TARGET=sgx .. && ninja
working-directory: cpp
build-cpp-app-virtual:
runs-on: ubuntu-20.04
container: ghcr.io/microsoft/ccf/app/dev/virtual:ccf-5.0.0
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build app (virtual)
run: mkdir -p build && cd build && CC="$(which clang-15)" CXX="$(which clang++-15)" cmake -GNinja -DCOMPILE_TARGET=virtual .. && ninja
working-directory: cpp
build-containers:
runs-on: ubuntu-20.04
container: ghcr.io/microsoft/ccf/app/dev/sgx:ccf-5.0.0
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build C++ enclave container
run: docker build -t ccf-app-template:cpp-enclave -f docker/ccf_app_cpp.enclave .
- name: Build C++ virtual container
run: docker build -t ccf-app-template:cpp-virtual -f docker/ccf_app_cpp.virtual .
- name: Build JS enclave container
run: docker build -t ccf-app-template:js-enclave -f docker/ccf_app_js.enclave .
- name: Build JS virtual container
run: docker build -t ccf-app-template:js-virtual -f docker/ccf_app_js.virtual .