chore(CI): download and compile deps for all supported targets.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
James Harton 2023-10-13 13:12:45 +13:00
parent c97a452bb6
commit c8164bce74
Signed by: james
GPG key ID: 90E82DAA13F624F4

View file

@ -70,8 +70,9 @@ steps:
- mix local.hex --if-missing --force
- mix local.rebar --if-missing --force
- mix archive.install hex nerves_bootstrap --force
- mix deps.get
- mix deps.compile
- (export MIX_TARGET=host; mix deps.get && mix deps.compile)
- (export MIX_TARGET=x86_64; mix deps.get && mix deps.compile)
- (export MIX_TARGET=rpi4; mix deps.get && mix deps.compile)
- mix dialyzer --plt
- name: store ASDF cache
@ -313,8 +314,8 @@ steps:
- tar zcvf "artifacts/$${APP_NAME}-$${APP_VERSION}-docs.tar.gz" doc/
- git tag -l --format='%(contents:subject)' v$${APP_VERSION} > tag_subject
- git tag -l --format='%(contents:body)' v$${APP_VERSION} > tag_body
- MIX_TARGET=x86_64 mix firmware.image && mv $${APP_NAME}.img artifacts/$${APP_NAME}-$${APP_VERSION}-x86_64.img
- MIX_TARGET=rpi4 mix firmware.image && mv $${APP_NAME}.img artifacts/$${APP_NAME}-$${APP_VERSION}-rpi4.img
- MIX_TARGET=x86_64 mix firmware.image artifacts/$${APP_NAME}-$${APP_VERSION}-$${MIX_TARGET}.img
- MIX_TARGET=rpi4 mix firmware.image artifacts/$${APP_NAME}-$${APP_VERSION}-$${MIX_TARGET}.img
- name: gitea release
image: plugins/gitea-release