-
Notifications
You must be signed in to change notification settings - Fork 11
135 lines (117 loc) · 3.07 KB
/
build_and_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
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
name: "Build"
on:
push:
branches:
- master
paths:
- '**'
# Don't run this workflow if the only files that changed are the
# following. Make sure this is the same as the "pull_request.paths" list.
- '!AUTHORS'
- '!PROBLEM-REPORT-FORM'
- '!LICENSE'
- '!.dockerignore'
- '!.mailmap'
- '!deploy/**'
- '!docs/**'
- '!**.md'
- '!**.rst'
- '!**/.gitignore'
- '!**/README*'
pull_request:
branches:
- master
paths:
- '**'
# Don't run this workflow if the only files that changed are the
# following. Make sure this is the same as the "push.paths" list.
- '!AUTHORS'
- '!PROBLEM-REPORT-FORM'
- '!LICENSE'
- '!.dockerignore'
- '!.mailmap'
- '!deploy/**'
- '!docs/**'
- '!**.md'
- '!**.rst'
- '!**/.gitignore'
- '!**/README*'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build_pi:
runs-on: ubuntu-22.04
steps:
- name: checkout opendds-smart-lock
uses: actions/checkout@v3
with:
path: opendds-smart-lock
- name: build pi
run: |
cd opendds-smart-lock
./smart-lock pi build-toolchain
./smart-lock pi compile
build_android_arm64:
runs-on: ubuntu-22.04
steps:
- name: install flutter
shell: bash
run: |
git clone https://github.com/flutter/flutter.git
- name: checkout opendds-smart-lock
uses: actions/checkout@v3
with:
path: opendds-smart-lock
- name: build android arm64
run: |
PATH="$PATH:`pwd`/flutter/bin"
cd opendds-smart-lock
./smart-lock android build-toolchain-arm64
./smart-lock android compile
build_android_arm:
runs-on: ubuntu-22.04
steps:
- name: install flutter
shell: bash
run: |
git clone https://github.com/flutter/flutter.git
- name: checkout opendds-smart-lock
uses: actions/checkout@v3
with:
path: opendds-smart-lock
- name: build android arm
run: |
PATH="$PATH:`pwd`/flutter/bin"
cd opendds-smart-lock
./smart-lock android build-toolchain-arm
./smart-lock android compile
build_android_x86:
runs-on: ubuntu-22.04
steps:
- name: install flutter
shell: bash
run: |
git clone https://github.com/flutter/flutter.git
- name: checkout opendds-smart-lock
uses: actions/checkout@v3
with:
path: opendds-smart-lock
- name: build android x86
run: |
PATH="$PATH:`pwd`/flutter/bin"
cd opendds-smart-lock
./smart-lock android build-toolchain-x86
./smart-lock android compile
build_certs_downloader:
runs-on: ubuntu-22.04
steps:
- name: checkout opendds-smart-lock
uses: actions/checkout@v3
with:
path: opendds-smart-lock
- name: compile rust certs downloader
run: |
cd opendds-smart-lock/src/certs_downloader
cargo build --release