-
Notifications
You must be signed in to change notification settings - Fork 34
88 lines (77 loc) · 2.95 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
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Unit Tests
on:
push:
branches:
- master
paths:
- "**.go"
- "**/go.mod"
pull_request:
paths:
- "**.go"
- "**/go.mod"
jobs:
test:
runs-on: ubuntu-22.04
container:
image: ghcr.io/edgelesssys/edgelessrt-dev:ci
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Test
run: ertgo test -race -count=3 ./...
- name: Setup
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
mkdir build
- name: Build
run: |
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
make
working-directory: build
- name: Integration test
run: ertgo test -tags integration -b ../build -s
working-directory: test
- name: Integration test (-noenclave)
run: ertgo test -tags integration -b ../build -noenclave
working-directory: test
- name: Build artifact
uses: actions/upload-artifact@c7d193f32edcb7bfad88892161225aeda64e9392 # v4
with:
name: marblerun
path: |
build/coordinator-enclave.signed
build/coordinator-noenclave
build/coordinator-era.json
build/premain-libos
build/marble-injector
build/marblerun
- name: Deploy coordinator: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":"marblerun",
"sign":"nightly",
"imagename":"marblerun/coordinator-debug",
"tag":"nightly",
"file": "dockerfiles/Dockerfile.coordinator",
"args": "--build-arg erttag=master --build-arg mrtag=master",
"target":"release"}}' \
https://api.github.com/repos/edgelesssys/deployment/dispatches
- name: Deploy marble-injector: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":"marblerun",
"sign":"nightly",
"imagename":"marblerun/marble-injector",
"tag":"nightly",
"file": "dockerfiles/Dockerfile.marble-injector",
"target":"release"}}' \
https://api.github.com/repos/edgelesssys/deployment/dispatches