-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (36 loc) · 1.14 KB
/
go.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
name: Go
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
HAS_CHRONY: True
steps:
- uses: actions/checkout@v3
- name: Install Chrony
run: |
sudo apt-get install libgnutls28-dev
sudo apt-get install gnutls-bin
sudo apt-get install libtomcrypt-dev
sudo apt-get install nettle-dev
curl -LO https://download.tuxfamily.org/chrony/chrony-4.3.tar.gz
tar -xzvf chrony-4.3.tar.gz
mv chrony-4.3 chrony-4.3-src
mkdir chrony-4.3
cd chrony-4.3-src/
./configure --prefix=/home/ubuntu/chrony-4.3
make
sudo make install
- name: Start Chrony
run: |
sh testnet/tls-gen-cert.sh
sudo systemctl stop chronyd
sudo /home/ubuntu/chrony-4.3/sbin/chronyd -4 -f /home/runner/work/scion-time/scion-time/testnet/chrony/chronyNTS.conf
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.1'
- name: Build
run: go build -o bin/timeservice timeservice.go timeservicex.go
- name: Test
run: go test