-
Notifications
You must be signed in to change notification settings - Fork 15
/
appveyor.yml
59 lines (56 loc) · 1.99 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '{build}'
branches:
only:
- main
skip_tags: true
image: Ubuntu2004
clone_folder: /home/appveyor/site
environment:
HAXELIB_ROOT: /home/appveyor/haxelib
HAXE_INSTALLDIR: /home/appveyor/haxe
SRC_REPO: https://github.com/KadeDev/Kade-Engine.git
GITHUB_ACCESS_TOKEN:
secure: /iJkmlKYPjeG0o1YoGSpn+NANPJMrCZ6dic5w/12wRiInp+y22kAAXsPkEwBJzHS
install:
- cd /home/appveyor/site
- git checkout main
- cd /home/appveyor
- sudo add-apt-repository ppa:haxe/releases -y
- sudo apt update
- sudo apt install neko tar -y
- wget https://github.com/HaxeFoundation/haxe/releases/download/4.1.5/haxe-4.1.5-linux64.tar.gz
- mkdir $HAXE_INSTALLDIR
- tar -xf haxe-4.1.5-linux64.tar.gz -C $HAXE_INSTALLDIR
- export PATH=$PATH:$HAXE_INSTALLDIR/haxe_20201231082044_5e33a78aa
- mkdir $HAXELIB_ROOT && haxelib setup $HAXELIB_ROOT
- haxelib install lime 7.9.0
- haxelib install openfl
- haxelib install flixel
- haxelib run lime setup flixel
- haxelib run lime setup
- haxelib install flixel-tools
- haxelib install flixel-addons
- haxelib install flixel-ui
- haxelib install hscript
- haxelib install newgrounds
- haxelib git faxe https://github.com/uhrobots/faxe
- haxelib git polymod https://github.com/larsiusprime/polymod.git
- haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
- haxelib list
- git clone $SRC_REPO /home/appveyor/src
build_script:
- cd /home/appveyor/site
- git config --global credential.helper store
- printf "https://$GITHUB_ACCESS_TOKEN:x-oauth-basic@github.com\n" > $HOME/.git-credentials
- git config --global user.email "daniel@frosty.gg"
- git config --global user.name "daniel11420"
- cd /home/appveyor/src
- haxelib run lime build html5
- cd /home/appveyor/site
- git rm -rf nightly/
- cp -r /home/appveyor/src/export/release/html5/bin /home/appveyor/site/bin
- mv /home/appveyor/site/bin /home/appveyor/site/nightly
- git add --all
- git commit -m "nightly build through appveyor"
- git push
deploy: off