-
Notifications
You must be signed in to change notification settings - Fork 48
91 lines (87 loc) · 2.77 KB
/
eden_setup.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
---
name: Eden_setup
on: # yamllint disable-line rule:truthy
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: setup
run: |
sudo apt update
sudo apt install -y qemu-utils qemu-user-static
- name: host info
run: |
ip a
- name: get eden
uses: actions/[email protected]
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: setup go
uses: actions/setup-go@v3
with:
go-version: '1.22'
- name: build docker images
run: |
make LINUXKIT_TARGET=build DOCKER_PLATFORM=linux/arm64 build-docker
make LINUXKIT_TARGET=build DOCKER_PLATFORM=linux/amd64 build-docker
setup:
runs-on: ubuntu-22.04
steps:
- name: setup
run: |
sudo apt update
sudo apt install -y qemu-utils qemu-user-static qemu-system-x86 jq swtpm
- name: host info
run: |
ip a
- name: get eden
uses: actions/[email protected]
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: setup go
uses: actions/setup-go@v3
with:
go-version: '1.22'
- name: build eden
run: |
make clean
make build-tests
- name: run
run: |
# check separate (non-default) config
./eden config add setup
./eden config set setup --key=eve.accel --value=false
./eden --config setup setup
./eden --config setup start
./eden --config setup eve onboard
./eden --config setup info
./eden --config setup clean
./eden config add setup --arch=arm64
./eden --config setup setup
./eden --config setup clean
./eden config delete setup
./eden config add setup --devmodel GCP
./eden --config setup setup
./eden --config setup clean
./eden config delete setup
./eden config add setup --devmodel RPi4
./eden --config setup setup
./eden --config setup clean
./eden config delete setup
./eden config add setup --devmodel general
./eden --config setup setup
./eden --config setup clean
./eden config delete setup
# try download and build from repo
./eden config add setup
# use stable tag as eve tag and branch may differ
./eden config set setup --key eve.tag --value="8.6.0"
./eden --config setup setup --download=false
./eden --config setup clean
./eden config delete setup