-
Notifications
You must be signed in to change notification settings - Fork 20
75 lines (65 loc) · 2.4 KB
/
unittests.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
68
69
70
71
72
73
74
75
name: Unit Tests
on:
push:
branches: [ master ]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
container:
image: ghcr.io/edgelesssys/edgelessrt-dev:nightly
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: edgelessrt
submodules: recursive
- name: Setup
run: mkdir build
- name: Build
run: |
cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo ../edgelessrt
ninja
working-directory: build
- name: Test
run: |
OE_SIMULATION=1 ctest --output-on-failure -E "tests/crypto/|tests/ert/ttls"
working-directory: build
- name: CPack
run: cpack -G DEB
working-directory: build
- name: Build artifact
uses: actions/upload-artifact@v2
with:
name: edgelessrt
path: build/*.deb
- name: Deploy edgelessrt-dev:nightly
if: github.ref == 'refs/heads/master' &&
github.event_name == 'push'
run: |
curl -X POST -H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.CI_GITHUB_REPOSITORY }}" \
-d '{"event_type": "docker-build",
"client_payload":{"repository":"edgelessrt",
"sign":"nightly",
"imagename":"edgelessrt-dev",
"tag":"nightly",
"file": "dockerfiles/Dockerfile",
"args": "--build-arg erttag=master",
"target":"release_develop"}}' \
https://api.github.com/repos/edgelesssys/deployment/dispatches
- name: Deploy edgelessrt-deploy:nightly
if: github.ref == 'refs/heads/master' &&
github.event_name == 'push'
run: |
curl -X POST -H "Accept: application/vnd.github.v3+json" \
-H "Authorization: token ${{ secrets.CI_GITHUB_REPOSITORY }}" \
-d '{"event_type": "docker-build",
"client_payload":{"repository":"edgelessrt",
"sign":"nightly",
"imagename":"edgelessrt-deploy",
"tag":"nightly",
"file": "dockerfiles/Dockerfile",
"args": "--build-arg erttag=master",
"target":"release_deploy"}}' \
https://api.github.com/repos/edgelesssys/deployment/dispatches