forked from cosmos/gaia
-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (43 loc) · 1.6 KB
/
speed-test.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
# This is a basic workflow that is manually triggered
name: Ubuntu Gaia Pi
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on: [push, pull_request]
# This workflow makes a 64 bit Raspberry Pi Ubuntu Server Image.
# It does not have the security issues mentioned here: https://github.com/tendermint/tendermint/blob/master/docs/tendermint-core/running-in-production.md#validator-signing-on-32-bit-architectures-or-arm
# Later, more devices will be supported, as well.
jobs:
build:
name: Gaia Pi Image
runs-on: self-hosted
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: 1.15
- name: Compile
run: make build
env:
GOOS: linux
GOARCH: arm64
- name: Upload Gaia Arm64 Binaries
uses: actions/upload-artifact@v2
with:
name: Gaia arm64
path: build/
- name: Build ubuntu-gaia.img
run: docker run --rm --privileged -v /dev:/dev -v ${PWD}:/build mkaczanowski/packer-builder-arm build contrib/pi-image/ubuntu-gaia.json
- name: Install PiShrink
run: |
wget https://raw.githubusercontent.com/Drewsif/PiShrink/master/pishrink.sh
chmod +x pishrink.sh
sudo mv pishrink.sh /usr/local/bin
- name: Shrink gaia.img
run: sudo pishrink.sh -a -Z -v ubuntu-gaia.img
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: Gaia PI
path: ubuntu-gaia.img.xz