[build] Allow building official targets on CI environments

This commit is contained in:
Romain Goyet
2020-03-24 14:18:04 -04:00
committed by EmilieNumworks
parent 3245a0060e
commit 46647cc35c
2 changed files with 10 additions and 1 deletions

View File

@@ -19,6 +19,7 @@ jobs:
- uses: actions/checkout@v1
- run: make -j2 MODEL=n0100 epsilon.dfu
- run: make -j2 MODEL=n0100 epsilon.onboarding.dfu
- run: make -j2 MODEL=n0100 epsilon.official.onboarding.dfu
- run: make -j2 MODEL=n0100 epsilon.onboarding.update.dfu
- run: make -j2 MODEL=n0100 epsilon.onboarding.beta.dfu
- run: make -j2 MODEL=n0100 flasher.light.dfu
@@ -36,6 +37,7 @@ jobs:
- uses: actions/checkout@v1
- run: make -j2 epsilon.dfu
- run: make -j2 epsilon.onboarding.dfu
- run: make -j2 epsilon.official.onboarding.dfu
- run: make -j2 epsilon.onboarding.update.dfu
- run: make -j2 epsilon.onboarding.beta.dfu
- run: make -j2 flasher.light.dfu
@@ -68,6 +70,7 @@ jobs:
sdk: latest-fastcomp
- uses: actions/checkout@v1
- run: make -j2 PLATFORM=simulator TARGET=web
- run: make -j2 PLATFORM=simulator TARGET=web epsilon.official.js
- uses: actions/upload-artifact@master
with:
name: epsilon-simulator-web.zip
@@ -108,3 +111,6 @@ jobs:
with:
name: epsilon-simulator-ios.ipa
path: output/release/simulator/ios/app/epsilon.ipa
env:
ACCEPT_OFFICIAL_TOS: 1

View File

@@ -2,7 +2,10 @@
.PHONY: official_authorization
official_authorization:
@echo "CAUTION: You are about to build an official NumWorks firmware. Distribution of such firmware by a third party is prohibited. Are you sure you want to proceed? Please type "yes" to confirm." && read ans && [ $${ans:-no} = yes ]
@echo "CAUTION: You are trying to build an official NumWorks firmware."
@echo "Distribution of such firmware by a third party is prohibited."
@echo "Please set the ACCEPT_OFFICIAL_TOS environment variable to proceed."
@exit $(if $(filter ACCEPT_OFFICIAL_TOS,1),0,-1)
$(eval $(call rule_for, \
AS, %.o, %.s, \