From b2564242e069954d8231c55fc93554edc7d665ea Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Wed, 22 Nov 2017 11:17:19 +0900 Subject: [PATCH] Add CI job for mips64el Note that our CI server is not ready for mips64el yet, so the binaries of libcc are not available yet. Currently it is downloading the binaries created by me manually, we should redirect to the official mirror before merging this PR. --- .circleci/config.yml | 58 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) 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: