Skip to content

Commit 2a47623

Browse files
committed
update build.yml
1 parent 49771b4 commit 2a47623

File tree

1 file changed

+69
-12
lines changed

1 file changed

+69
-12
lines changed

.github/workflows/build.yml

Lines changed: 69 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
python-version: 3.5
2323
- name: Install deps
2424
run: |
25-
sudo apt-get install -y gettext librsvg2-bin
25+
sudo apt-get install -y eatmydata
26+
sudo eatmydata apt-get install -y gettext librsvg2-bin mingw-w64
2627
pip install requests sh click setuptools cpp-coveralls Sphinx sphinx-rtd-theme recommonmark sphinxcontrib-svg2pdfconverter polib pyyaml
2728
- name: Versions
2829
run: |
@@ -66,21 +67,73 @@ jobs:
6667
run: python3 -u ci_new_boards_check.py
6768
working-directory: tools
6869

70+
- name: Build mpy-cross.static-raspbian
71+
run: make -C mpy-cross -j2 -f Makefile.static-raspbian
72+
- uses: actions/[email protected]
73+
with:
74+
name: mpy-cross.static-raspbian
75+
path: mpy-cross/mpy-cross.static-raspbian
76+
77+
- name: Build mpy-cross.static
78+
run: make -C mpy-cross -j2 -f Makefile.static
79+
- uses: actions/[email protected]
80+
with:
81+
name: mpy-cross.static-amd64-linux
82+
path: mpy-cross/mpy-cross.static
83+
84+
- name: Build mpy-cross.static-mingw
85+
run: make -C mpy-cross -j2 -f Makefile.static-mingw
86+
- uses: actions/[email protected]
87+
with:
88+
name: mpy-cross.static-x64-windows
89+
path: mpy-cross/mpy-cross.static.exe
90+
91+
mpy-cross-mac:
92+
runs-on: macos-latest
93+
steps:
94+
- name: Dump GitHub context
95+
env:
96+
GITHUB_CONTEXT: ${{ toJson(github) }}
97+
run: echo "$GITHUB_CONTEXT"
98+
- name: Install deps
99+
run: |
100+
brew link --force gettext
101+
- name: Versions
102+
run: |
103+
gcc --version
104+
python3 --version
105+
msgfmt --version
106+
- uses: actions/checkout@v1
107+
with:
108+
submodules: true
109+
- name: CircuitPython version
110+
run: git describe --dirty --always --tags
111+
- name: Build mpy-cross
112+
run: make -C mpy-cross -j2
113+
- uses: actions/[email protected]
114+
with:
115+
name: mpy-cross-macos-catalina
116+
path: mpy-cross/mpy-cross
117+
69118
build-arm:
70119
runs-on: ubuntu-16.04
71120
needs: test
72121
strategy:
73122
fail-fast: false
74123
matrix:
75124
board:
125+
- "TG-Watch02A"
76126
- "aramcon_badge_2019"
77127
- "arduino_mkr1300"
78128
- "arduino_mkrzero"
79129
- "arduino_nano_33_ble"
130+
- "arduino_nano_33_iot"
80131
- "arduino_zero"
81132
- "bast_pro_mini_m0"
82133
- "capablerobot_usbhub"
83134
- "catwan_usbstick"
135+
- "circuitbrains_basic_m0"
136+
- "circuitbrains_deluxe_m4"
84137
- "circuitplayground_bluefruit"
85138
- "circuitplayground_express"
86139
- "circuitplayground_express_crickit"
@@ -95,6 +148,9 @@ jobs:
95148
- "electronut_labs_blip"
96149
- "electronut_labs_papyr"
97150
- "escornabot_makech"
151+
- "espruino_pico"
152+
- "espruino_wifi"
153+
- "feather_bluefruit_sense"
98154
- "feather_m0_adalogger"
99155
- "feather_m0_basic"
100156
- "feather_m0_express"
@@ -103,6 +159,7 @@ jobs:
103159
- "feather_m0_rfm9x"
104160
- "feather_m0_supersized"
105161
- "feather_m4_express"
162+
- "feather_m7_1011"
106163
- "feather_mimxrt1011"
107164
- "feather_mimxrt1062"
108165
- "feather_nrf52840_express"
@@ -113,19 +170,24 @@ jobs:
113170
- "hallowing_m0_express"
114171
- "hallowing_m4_express"
115172
- "imxrt1010_evk"
173+
- "imxrt1020_evk"
174+
- "imxrt1060_evk"
116175
- "itsybitsy_m0_express"
117176
- "itsybitsy_m4_express"
118177
- "itsybitsy_nrf52840_express"
119178
- "kicksat-sprite"
120179
- "makerdiary_nrf52840_mdk"
121180
- "makerdiary_nrf52840_mdk_usb_dongle"
181+
- "meowbit_v121"
122182
- "meowmeow"
123183
- "metro_m0_express"
124184
- "metro_m4_airlift_lite"
125185
- "metro_m4_express"
126186
- "metro_nrf52840_express"
127187
- "mini_sam_m4"
128188
- "monster_m4sk"
189+
- "ndgarage_ndbit6"
190+
- "nfc_copy_cat"
129191
- "ohs2020_badge"
130192
- "openbook_m4"
131193
- "particle_argon"
@@ -140,6 +202,7 @@ jobs:
140202
- "pybadge"
141203
- "pybadge_airlift"
142204
- "pyboard_v11"
205+
- "pycubed"
143206
- "pygamer"
144207
- "pygamer_advance"
145208
- "pyportal"
@@ -158,17 +221,21 @@ jobs:
158221
- "sparkfun_redboard_turbo"
159222
- "sparkfun_samd21_dev"
160223
- "sparkfun_samd21_mini"
224+
- "sparkfun_samd51_thing_plus"
161225
- "spresense"
162226
- "stm32f411ce_blackpill"
163227
- "stm32f411ve_discovery"
164228
- "stm32f412zg_discovery"
229+
- "stm32f4_discovery"
165230
- "stringcar_m0_express"
231+
- "teensy40"
166232
- "teknikio_bluebird"
167233
- "trellis_m4_express"
168234
- "trinket_m0"
169235
- "trinket_m0_haxpress"
170236
- "uchip"
171237
- "ugame10"
238+
- "winterbloom_big_honking_button"
172239
- "winterbloom_sol"
173240
- "xinabox_cc03"
174241
- "xinabox_cs11"
@@ -208,14 +275,4 @@ jobs:
208275
env:
209276
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
210277
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
211-
if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
212-
- name: Install upload deps
213-
run: |
214-
pip install uritemplate
215-
- name: Upload to Release
216-
run: "[ -z \"$ADABOT_GITHUB_ACCESS_TOKEN\" ] || python3 -u upload_release_files.py"
217-
working-directory: tools
218-
env:
219-
UPLOAD_URL: ${{ github.event.release.upload_url }}
220-
ADABOT_GITHUB_ACCESS_TOKEN: ${{ secrets.BLINKA_GITHUB_ACCESS_TOKEN }}
221-
if: github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested')
278+
if: github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))

0 commit comments

Comments
 (0)