Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save resources in the build and deployment process #6

Open
probonopd opened this issue Jan 4, 2015 · 0 comments
Open

Save resources in the build and deployment process #6

probonopd opened this issue Jan 4, 2015 · 0 comments

Comments

@probonopd
Copy link
Owner

Objectives:

  • Cache SDKs for all architectures to produce less traffic and build faster
  • Upload only the latest version to gh-pages (do not save history) to decrease repo size

For the caching, it looks like we need to wget the SDKs for all platforms into cache/ regardless of the platform we are currently building.

For gh-pages, we should use something along the lines of https://github.com/mazerte/test-footguard/blob/master/scripts/gh-pages.sh like

cd dist
rm -rf .git
git init
# git remote add origin $(git config --get remote.origin.url) # > /dev/null 2>&1
git remote add origin https://${TOKEN}@github.com/${USER}/${REPO}.git # > /dev/null 2>&1
git push origin --delete gh-pages > /dev/null 2>&1
git checkout -b gh-pages
git add --all
git commit -m "$message"
git push origin gh-pages -f > /dev/null # 2>&1
cd - 

However, this can only work if we build all platforms in one go (rather than parallel), because we basically re-generate gh-pages from scratch every time.

Pull requests are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant