-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.24 KB
/
deviceparameters.yml
File metadata and controls
51 lines (40 loc) · 1.24 KB
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
name: build-deviceparameters
on: [push]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.17.2'
- name: Install build tools
run: sudo apt update && sudo apt install -y lsb-release build-essential debhelper upx ruby ruby-dev
- name: Install ronn for converting manpages
run: sudo gem install ronn
# AMD64
- name: Build for amd64
run: cd support && make amd64
- name: Install amd64
run: sudo dpkg -i mist-device-parameters_*_amd64.deb
- name: Run installed deviceparamter
run: deviceparameter -V
- name: Run installed deviceparamters
run: deviceparameters -V
# ARMv5 / armel
- name: Build for armel(arm5)
run: cd support && make armel
# ARMv6 / armhf
- name: Build for armhf(arm6)
run: cd support && make armhf
# Windows
- name: Build for Windows
run: cd support && make win64
# Publish
- uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
artifacts: "mist-device-parameters_*.deb,mist-device-parameters_*.zip"
token: ${{ secrets.GITHUB_TOKEN }}
draft: true