-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.build.yml
46 lines (46 loc) · 1.74 KB
/
.build.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
image: archlinux
packages:
- curl
- unzip
- zip
- cmake
- clang
- llvm
- lld
# msitools deps
- libgsf
- gcab
- intltool
- vala
- tar
sources:
- https://github.com/SokuDev/SokuMods
secrets:
- 63d7a0ac-2635-4d42-9709-efcd2cf74858
tasks:
- check: |
[ "$GITHUB_REF" = "refs/heads/master" ] || complete-build
- msitools: |
# msitools 0.101 is broken on AUR, build 0.100 ourselves
curl http://ftp.gnome.org/pub/GNOME/sources/msitools/0.100/msitools-0.100.tar.xz -L -o - | tar xJf -
cd msitools-*
./configure --prefix=/usr
sed -i 's|LIBTOOL = $(SHELL) $(top_builddir)/libtool|LIBTOOL = /usr/bin/libtool|g' Makefile
make
sudo make install
- setup: |
cd SokuMods
sh setup.sh
curl -s -O 'https://raw.githubusercontent.com/delthas/llvm-project/fix-winmsvc-rc/llvm/cmake/platforms/WinMsvc.cmake'
curl -s -O 'https://raw.githubusercontent.com/delthas/llvm-project/fix-winmsvc-rc/llvm/cmake/platforms/ClangClCMakeCompileRules.cmake'
- build: |
cd SokuMods
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=WinMsvc.cmake -DHOST_ARCH=x86 -DLLVM_NATIVE_TOOLCHAIN=/usr -DMSVC_BASE=$PWD/msvc -DWINSDK_BASE=$PWD/winsdk -DWINSDK_VER=10.0.17763.0 -DBUILD_BLACKLIST=FALSE -DBUILD_SOKU_STREAMING=FALSE -DINSTALL_AUTOPUNCH_DAT=TRUE .
cmake --build .
cmake --install .
(cd install/SWRSToys && zip -r9 ../../swrstoys.zip *)
(cd install/SokuEngine && zip -r9 ../../sokuengine.zip *)
- deploy: |
cd SokuMods
scp -P 2222 -o StrictHostKeyChecking=no -q swrstoys.zip user@delthas.fr:/srv/http/sokuazote/swrstoys.zip
scp -P 2222 -o StrictHostKeyChecking=no -q sokuengine.zip user@delthas.fr:/srv/http/sokuazote/sokuengine.zip