-
Notifications
You must be signed in to change notification settings - Fork 34
67 lines (56 loc) · 2.24 KB
/
tee_check.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Runtime and cross_tee testing
on: [push, pull_request]
jobs:
null_instance_check:
# differetn null instance combination
strategy:
matrix:
tag: [anolis8.6, ubuntu20.04]
# if only specify a container image, can omit the `image` keyword
# get the image from the docker hub
container: runetest/compilation-testing:${{ matrix.tag }}
# Use GitHub-hosted runner Ubuntu 20.04
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
working-directory: ${{ github.workspace }}
env:
HOME: /root
#todo: use cache to boost the workflow
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Build and install "host" mode
run: |
source /root/.bashrc
cmake -DBUILD_SAMPLES=on -H. -Bbuild
make -C build install
# install dependencies
- if: ${{matrix.tag == 'ubuntu20.04'}}
run: apt-get install lsof
- if: ${{matrix.tag == 'anolis8.6'}}
run: yum install lsof -y
- id: rand_port_1
uses: ./.github/actions/generate-random-port
- name: Host mode with nullattester/nullverifier/nulltls/nullcrypto
working-directory: /usr/share/rats-tls/samples
run: |
PORT=${{steps.rand_port_1.outputs.random-port}}
./rats-tls-server -a nullattester -v nullverifier -t nulltls -c nullcrypto -p $PORT -m &
sleep 1
./rats-tls-client -a nullattester -v nullverifier -t nulltls -c nullcrypto -p $PORT -m
- id: rand_port_2
uses: ./.github/actions/generate-random-port
- name: Host mode with nullattester/nullverifier/openssl/openssl
working-directory: /usr/share/rats-tls/samples
run: |
PORT=${{steps.rand_port_2.outputs.random-port}}
./rats-tls-server -a nullattester -v nullverifier -t openssl -c openssl -m -p $PORT &
sleep 1
./rats-tls-client -a nullattester -v nullverifier -t openssl -c openssl -m -p $PORT
- name: Clean the build
run: |
cd $GITHUB_WORKSPACE
make -C build clean
make -C build uninstall