GodotBuilder / godot-builds

Deploys Godot Engine release binaries via Travis CI and AppVeyor
https://godotengine.org
44 stars 12 forks source link

add appveyor support for relase builds #1

Closed Marqin closed 8 years ago

Marqin commented 8 years ago

This will add appveyor support for relase builds.

Example build: https://ci.appveyor.com/project/Marqin/godot-builds/build/1.0.3

Warning: it takes 20~30 minutes per job, so it will take ~2 hours to compile all binaries.

Now you have to connect this with your github for github-releases. More info: https://www.appveyor.com/docs/deployment/github

Marqin commented 8 years ago

Do not merge yet. Some guys say that Godot Docs are wrong, Scons bits don't work with MSVC etc: https://github.com/godotengine/godot/issues/3098#issuecomment-199406607

Marqin commented 8 years ago

@akien-mga it works OK now.

Marqin commented 8 years ago

Proof that it works for 'with tools' version - https://ci.appveyor.com/project/Marqin/godot/build/1.0.23

Marqin commented 8 years ago

- git submodule update --init --recursive # download submodules Is crucial, because appveyor doesn't fetch submodules by default.

akien-mga commented 8 years ago

Awesome, thanks! IIRC AppVeyor also has support for uploading artifacts to GitHub releases? Would our encrypted token from https://github.com/GodotBuilder/godot-builds/blob/master/.travis.yml#L179 work for that, or should I generate a specific one for AppVeyor?

mattiascibien commented 8 years ago

@Marqin should artifact be packaged before trying to upload to github?

techtonik commented 8 years ago

Is it also possible to run tests together with the build?

Marqin commented 8 years ago

work for that, or should I generate a specific one for AppVeyor?

Dunno. In link I've posted in first post they say:

Be sure to encrypt your token using the Account -> Encrypt data tool.

As for artifacts - I'll test it on another branch, but I seems not to work, because it fetches old Godot and not HEAD. @akien-mga how can I update submodule to use godot HEAD on my custom branch?

akien-mga commented 8 years ago

how can I update submodule to use godot HEAD on my custom branch?

Likely something like:

cd godot
git checkout master
git status // should show that the submodule has pending changes
git commit -m 'Sync submodule with current HEAD'

Edit: I've just pushed a commit to update the reference.

GodotBuilder commented 8 years ago

Hello world!

Setting up https://ci.appveyor.com/project/GodotBuilder/godot-builds :)

techtonik commented 8 years ago

Awesome. =)

Marqin commented 8 years ago

It produced artifacts on godot-HEAD: https://ci.appveyor.com/project/Marqin/godot/build/job/jo0lajgouii7kb1q/artifacts

Now you have to setup this github upload yourself.