@@ -131,6 +131,7 @@ jobs:
131131 - " arduino_nano_33_iot"
132132 - " arduino_zero"
133133 - " bast_pro_mini_m0"
134+ - " bdmicro_vina_m0"
134135 - " capablerobot_usbhub"
135136 - " catwan_usbstick"
136137 - " circuitbrains_basic_m0"
@@ -279,3 +280,49 @@ jobs:
279280 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
280281 AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
281282 if : github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
283+
284+ build-riscv :
285+ runs-on : ubuntu-16.04
286+ needs : test
287+ strategy :
288+ fail-fast : false
289+ matrix :
290+ board :
291+ - " fomu"
292+
293+ steps :
294+ - name : Set up Python 3.5
295+ uses : actions/setup-python@v1
296+ with :
297+ python-version : 3.5
298+ - name : Install deps
299+ run : |
300+ sudo apt-get install -y gettext
301+ pip install requests sh click setuptools awscli
302+ wget https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-centos6.tar.gz
303+ sudo tar -C /usr --strip-components=1 -xaf riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-centos6.tar.gz
304+ - name : Versions
305+ run : |
306+ gcc --version
307+ riscv64-unknown-elf-gcc --version
308+ python3 --version
309+ - uses : actions/checkout@v1
310+ with :
311+ submodules : true
312+ - name : mpy-cross
313+ run : make -C mpy-cross -j2
314+ - name : build
315+ run : python3 -u build_release_files.py
316+ working-directory : tools
317+ env :
318+ BOARDS : ${{ matrix.board }}
319+ - uses : actions/upload-artifact@v1.0.0
320+ with :
321+ name : ${{ matrix.board }}
322+ path : bin/${{ matrix.board }}
323+ - name : Upload to S3
324+ run : " [ -z \" $AWS_ACCESS_KEY_ID\" ] || aws s3 cp bin/ s3://adafruit-circuit-python/bin/ --recursive --no-progress --region us-east-1"
325+ env :
326+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
327+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
328+ if : github.event_name == 'push' || (github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
0 commit comments