-
Notifications
You must be signed in to change notification settings - Fork 5
146 lines (122 loc) · 3.3 KB
/
Replay_Boot.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
136
137
138
139
140
141
142
143
144
145
146
name: Replay_Boot
on:
push:
paths:
- '.github/workflows/Replay_Boot.yml'
- '**'
pull_request:
branches: master
paths:
- '.github/workflows/Replay_Boot.yml'
- '**'
workflow_dispatch:
jobs:
Build_R1_Firmware:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install deps
run: |
sudo apt-get install gcc-arm-none-eabi libarchive-zip-perl
arm-none-eabi-gcc -v
- name: Build
run: |
cd $GITHUB_WORKSPACE
./compile.sh
- name: Package
run: |
cd $GITHUB_WORKSPACE
./package.sh
mkdir -p $GITHUB_WORKSPACE/artifact
find . -maxdepth 1 -type f -name "*.zip" -exec mv {} $GITHUB_WORKSPACE/artifact \;
- uses: actions/upload-artifact@v4
with:
name: R1_Firmware
path: artifact
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
files: |
artifact/*.zip
Verify_MacOSX_Build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
# version 8-2018-q4-major
# brew install arm-none-eabi-gcc
# brew install https://raw.githubusercontent.com/ARMmbed/homebrew-formulae/404948446fc686d76799f09dc5074d611ee6db72/arm-none-eabi-gcc.rb
- name: Install deps
run: |
brew tap ArmMbed/homebrew-formulae
brew tap-new $USER/armmbed
brew extract --version=8-2018-q4-major armmbed/homebrew-formulae/arm-none-eabi-gcc $USER/armmbed
brew install [email protected]
arm-none-eabi-gcc -v
- name: Build
run: |
cd $GITHUB_WORKSPACE
./compile.sh
Verify_Windows_Build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install deps
run: |
choco install gcc-arm-embedded --version=7.2.1.20170904
arm-none-eabi-gcc -v
- name: Build
run: |
cd %GITHUB_WORKSPACE%\sw\arm_sw
compile.bat
shell: cmd
Build_HOSTED:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install deps
run: sudo apt-get install libncurses5-dev
- name: Build
run: |
cd $GITHUB_WORKSPACE/Replay_Boot
HOSTED=1 make
Build_VIDOR:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Retrieve Arduino IDE
run: |
cd $GITHUB_WORKSPACE/Replay_Boot
./install_arduino_vidor.sh
- name: Build
run: |
cd $GITHUB_WORKSPACE/Replay_Boot
VIDOR=1 make verify
- name: Package
run: |
cd $GITHUB_WORKSPACE
./package_vidor.sh
mkdir -p $GITHUB_WORKSPACE/artifact
find . -maxdepth 1 -type f -name "*.zip" -exec mv {} $GITHUB_WORKSPACE/artifact \;
- uses: actions/upload-artifact@v4
with:
name: replay_mkrvidor4000
path: artifact
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
files: |
artifact/*.zip