-
-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathappveyor.yml
62 lines (45 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
---
version: "v-{build}"
branches:
only:
- master
skip_non_tags: true
image: Visual Studio 2022
configuration:
- Release
clone_folder: C:\projects\datalevin
environment:
GRAALVM_HOME: C:\projects\datalevin\graalvm\graalvm-jdk-23.0.1+11.1
JAVA_HOME: C:\Program Files\Java\jdk21
PATH: C:\Program Files\Java\jdk21\bin;%PATH%
clone_script:
- ps: >-
if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
git clone -q --branch=$env:APPVEYOR_REPO_BRANCH https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
cd $env:APPVEYOR_BUILD_FOLDER
git checkout -qf $env:APPVEYOR_REPO_COMMIT
} else {
git clone -q https://github.com/$env:APPVEYOR_REPO_NAME.git $env:APPVEYOR_BUILD_FOLDER
cd $env:APPVEYOR_BUILD_FOLDER
git fetch -q origin +refs/pull/$env:APPVEYOR_PULL_REQUEST_NUMBER/merge:
git checkout -qf FETCH_HEAD
}
build_script:
- cmd: >-
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://download.oracle.com/graalvm/23/latest/graalvm-jdk-23_windows-x64_bin.zip', 'graalvm.zip')"
powershell -Command "Expand-Archive -Path 'graalvm.zip' -Verbose"
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein.bat', 'lein.bat')"
call lein.bat self-install
call script\compile-native.bat
7z a dtlv-%APPVEYOR_REPO_TAG_NAME%-windows-amd64.zip dtlv.exe
artifacts:
- path: dtlv-$(APPVEYOR_REPO_TAG_NAME)-windows-amd64.zip
deploy:
provider: GitHub
auth_token:
secure: QIiuupmpAl2Y5kxVyFJTSDRIj/uKyXXE3PzARE//JY44zXEJ7vbqvhcftKq/dFdf
artifact: /.*\.zip/
force_update: true
on:
APPVEYOR_REPO_TAG: true