-
Notifications
You must be signed in to change notification settings - Fork 125
112 lines (106 loc) · 3.35 KB
/
catcollar.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
name: Main Catcollar
concurrency:
group: catcollar
cancel-in-progress: false
on:
push:
branches:
- bugfix-*
- enhancement-*
- feature-*
- workaround-*
- dev
- unstable
- main
workflow_dispatch:
env:
LIBOS: catcollar
SERVER: ${{ secrets.CATCOLLAR_HOSTNAME_A }}
CLIENT: ${{ secrets.CATCOLLAR_HOSTNAME_B }}
SERVER_ADDR: 10.3.1.40
CLIENT_ADDR: 10.3.1.41
jobs:
debug-pipeline:
name: Debug Pipeline
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup SSH
shell: bash
run: |
mkdir -p $HOME/.ssh/
echo "${{ secrets.SSHKEY }}" > "$HOME/.ssh/id_rsa"
chmod 400 $HOME/.ssh/id_rsa
echo "Host *" > $HOME/.ssh/config
echo -e "\tStrictHostKeyChecking no" >> $HOME/.ssh/config
echo -e "\tIdentityFile $HOME/.ssh/id_rsa" >> $HOME/.ssh/config
echo -e "\tIdentitiesOnly yes" >> $HOME/.ssh/config
echo -e "\tPasswordAuthentication no" >> $HOME/.ssh/config
echo -e "\tUser ${{ secrets.USERNAME }}" >> $HOME/.ssh/config
echo -e "\tPort ${{ secrets.PORTNUM }}" >> $HOME/.ssh/config
- name: Run
run: |
pip install --pre azure-data-tables
python3 tools/demikernel_ci.py \
--server $SERVER \
--client $CLIENT \
--repository demikernel \
--branch origin/${{ github.ref_name }} \
--libos $LIBOS \
--debug \
--test-unit --test-system all --delay 2 \
--server-addr $SERVER_ADDR \
--client-addr $CLIENT_ADDR
- name: Archive Logs
if: always()
uses: actions/upload-artifact@v3
with:
name: debug-pipeline-logs
path: |
**/*.stdout.txt
**/*.stderr.txt
release-pipeline:
name: Release Pipeline
needs: debug-pipeline
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup SSH
shell: bash
run: |
mkdir -p $HOME/.ssh/
echo "${{ secrets.SSHKEY }}" > "$HOME/.ssh/id_rsa"
chmod 400 $HOME/.ssh/id_rsa
echo "Host *" > $HOME/.ssh/config
echo -e "\tStrictHostKeyChecking no" >> $HOME/.ssh/config
echo -e "\tIdentityFile $HOME/.ssh/id_rsa" >> $HOME/.ssh/config
echo -e "\tIdentitiesOnly yes" >> $HOME/.ssh/config
echo -e "\tPasswordAuthentication no" >> $HOME/.ssh/config
echo -e "\tUser ${{ secrets.USERNAME }}" >> $HOME/.ssh/config
echo -e "\tPort ${{ secrets.PORTNUM }}" >> $HOME/.ssh/config
- name: Run
run: |
pip install --pre azure-data-tables
python3 tools/demikernel_ci.py \
--server $SERVER \
--client $CLIENT \
--repository demikernel \
--branch origin/${{ github.ref_name }} \
--libos $LIBOS \
--test-unit --test-system all --delay 2 \
--server-addr $SERVER_ADDR \
--client-addr $CLIENT_ADDR \
--connection-string "${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}" \
--table-name ${{ secrets.AZURE_STORAGE_TABLE_NAME }}
- name: Archive Logs
if: always()
uses: actions/upload-artifact@v3
with:
name: release-pipeline-logs
path: |
**/*.stdout.txt
**/*.stderr.txt