-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
83 lines (60 loc) · 2.28 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
version: "v-{build}"
branches:
only:
- master
skip_non_tags: true
image: Visual Studio 2022
configuration:
- Release
clone_folder: C:\projects\dtlvnative
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
}
- cmd: git submodule update --init --recursive
environment:
CLOJARS_USERNAME:
secure: A9P42qYnNYI+9EceDI1P2A==
CLOJARS_PASSWORD:
secure: QBGBAPMwE4mmZlqQNIbGSF/ie4DXGOK74YML7qvWOPuFKJxqwcv4/LlZMXsbyqCPDI5auDtlQzuXarYxwBCViBThstLoPO8NFXm5N36UwB8=
JAVA_HOME: C:\Program Files\Java\jdk21
PATH: C:\Program Files\Java\jdk21\bin;%PATH%
build_script:
- cmd: >-
mkdir windows-x86_64\resources\datalevin\dtlvnative\windows-x86_64
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein.bat', 'lein.bat')"
call lein.bat self-install
cd windows-x86_64
call ..\lein.bat deps
- cmd: >-
cd ..
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
call script\build.bat
cd windows-x86_64
call ..\lein.bat deploy clojars
on_finish:
- ps: |
Write-Host "Looking for Clojure logs in $env:TEMP ..."
Push-Location $env:TEMP
$files = Get-ChildItem -LiteralPath . -Filter clojure-*.edn -File 2>$null
if ($files) {
foreach ($file in $files) {
Write-Host "Dumping file: $($file.FullName)"
Get-Content $file.FullName
}
} else {
Write-Host "No matching clojure-*.edn logs found."
}
Pop-Location
- cmd: IF EXIST hs_err_pid*.log echo "Found crash logs:"
- cmd: IF EXIST hs_err_pid*.log dir hs_err_pid*.log
- cmd: IF EXIST hs_err_pid*.log for %%F in (hs_err_pid*.log) do ( echo "----------------------------------------" && echo "Dumping %%F:" && type "%%F" )