-
Notifications
You must be signed in to change notification settings - Fork 11
/
.appveyor.yml
62 lines (55 loc) · 1.77 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
60
61
62
image:
- Visual Studio 2017
environment:
global:
NAME: nuklear
ASDF_SYSTEM: bodge-nuklear
matrix:
- platform: x64
TARGET_ARCH: x86_64
CFLAGS: -m64
PATH: C:\msys64\mingw64\bin\;C:\msys64\usr\bin\;$(PATH)
PACKAGES: mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake
- platform: x86
TARGET_ARCH: i686
CFLAGS: -m32
PATH: C:\msys64\mingw32\bin\;C:\msys64\usr\bin\;$(PATH)
PACKAGES: mingw-w64-i686-toolchain mingw-w64-i686-cmake
skip_non_tags: true
branches:
only:
- master
- "/^v\\d+(\\.\\d+)+$/"
install:
- git submodule update --init --recursive --depth=2
- pacman --needed --noconfirm -S zip unzip base-devel %PACKAGES%
- curl -L http://bodge.borodust.org/files/install.sh | sh
build_script:
- set TARGET_NAME=lib%NAME%
- set TARGET_VERSION=%TARGET_ARCH%-windows-%APPVEYOR_REPO_TAG_NAME%
- set TARGET_ARTIFACT=%TARGET_NAME%.dll-%TARGET_VERSION%
- set TARGET_SPEC=%TARGET_ARTIFACT%-spec.zip
- >
sh -c "
CFLAGS=%CFLAGS% cd src/lib/
&& make clean build
&& ~/.bodge/bin/lisp regen-local-spec-and-zip --arch %TARGET_ARCH% \"$(cygpath -u '%APPVEYOR_BUILD_FOLDER%')\" %ASDF_SYSTEM% \"$(cygpath -u '%APPVEYOR_BUILD_FOLDER%\%TARGET_SPEC%')\""
- mv %APPVEYOR_BUILD_FOLDER%\src\lib\%TARGET_NAME%.dll.bodged %APPVEYOR_BUILD_FOLDER%\%TARGET_ARTIFACT%
artifacts:
- path: $(TARGET_ARTIFACT)
name: target_artifact
- path: $(TARGET_SPEC)
name: target_spec
deploy:
provider: GitHub
release: $(APPVEYOR_REPO_TAG_NAME)
tag: $(APPVEYOR_REPO_TAG_NAME)
description: $(APPVEYOR_REPO_COMMIT_MESSAGE)
auth_token:
secure: Z5XWjDOBlCrmfz3SQAjnLKtdgI5B2b/owJhRPNWYGrI+qwVNbBc4cZiroBZReWP7
artifact: target_artifact, target_spec
force_update: true
draft: false
prerelease: false
on:
appveyor_repo_tag: true