diff --git a/.circleci/config.yml b/.circleci/config.yml index cffac9a667..d740f88bc9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -172,6 +172,64 @@ jobs: else echo 'Skipping upload distribution because build is not for release' fi + electron-linux-mips64el: + docker: + - image: electronbuilds/electron:0.0.3 + environment: + TARGET_ARCH: mips64el + LIBCHROMIUMCONTENT_MIRROR: https://s3.amazonaws.com/gh-contractor-zcbenz/libchromiumcontent + resource_class: xlarge + steps: + - checkout + - run: + name: Check for release + command: | + if [ -n "${RUN_RELEASE_BUILD}" ]; then + echo 'release build triggered from api' + echo 'export ELECTRON_RELEASE=1 TRIGGERED_BY_API=1' >> $BASH_ENV + fi + - run: + name: Bootstrap + command: | + if [ "$ELECTRON_RELEASE" == "1" ]; then + echo 'Bootstrapping Electron for release build' + script/bootstrap.py --target_arch=$TARGET_ARCH + else + echo 'Bootstrapping Electron for debug build' + script/bootstrap.py --target_arch=$TARGET_ARCH --dev + fi + - run: npm run lint + - run: + name: Build + command: | + if [ "$ELECTRON_RELEASE" == "1" ]; then + echo 'Building Electron for release' + script/build.py -c R + else + echo 'Building Electron for debug' + script/build.py -c D + fi + - run: + name: Create distribution + command: | + if [ "$ELECTRON_RELEASE" == "1" ]; then + echo 'Creating Electron release distribution' + script/create-dist.py + else + echo 'Skipping create distribution because build is not for release' + fi + - run: + name: Upload distribution + command: | + if [ "$ELECTRON_RELEASE" == "1" ] && [ "$TRIGGERED_BY_API" != "1" ]; then + echo 'Uploading Electron release distribution to github releases' + script/upload.py + elif [ "$ELECTRON_RELEASE" == "1" ] && [ "$TRIGGERED_BY_API" == "1" ]; then + echo 'Uploading Electron release distribution to s3' + script/upload.py --upload_to_s3 + else + echo 'Skipping upload distribution because build is not for release' + fi electron-linux-x64: docker: