-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathappveyor.yml
44 lines (26 loc) · 1.57 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
---
version: "v-{build}"
image: Visual Studio 2022
clone_folder: C:\projects\dictim
environment:
GRAALVM_HOME: C:\projects\dictim\graalvm\graalvm-community-openjdk-21.0.2+13.1
BABASHKA_XMX: "-J-Xmx5g"
cache:
- '%USERPROFILE%\.m2 -> deps.edn'
- '%USERPROFILE%\.gitlibs -> deps.edn'
- 'graalvm -> appveyor.yml'
build_script:
- cmd: >-
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
powershell -Command "if (Test-Path('graalvm')) { return } else { (New-Object Net.WebClient).DownloadFile('https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.2/graalvm-community-jdk-21.0.2_windows-x64_bin.zip', 'graalvm.zip') }"
powershell -Command "if (Test-Path('graalvm')) { return } else { Expand-Archive graalvm.zip graalvm }"
powershell -Command "if (Test-Path('bb.exe')) { return } else { (New-Object Net.WebClient).DownloadFile('https://github.com/borkdude/babashka/releases/download/v1.3.190/babashka-1.3.190-windows-amd64.zip', 'bb.zip') }"
powershell -Command "if (Test-Path('bb.exe')) { return } else { Expand-Archive bb.zip . }"
powershell -Command "if (Test-Path('clojure.exe')) { return } else { (New-Object Net.WebClient).DownloadFile('https://github.com/casselc/clj-msi/releases/download/v1.11.3.1463/clojure-1.11.3.1463.msi', 'clojure.msi') }"
powershell -Command "msiexec.exe /i clojure.msi /qn"
- cmd: >-
call script/compile.bat
bb win-cmd-test
set /P VERSION=< resources\VERSION
set ARCHIVE=dictim-%VERSION%-windows-amd64.zip
bb release-artifact --file %ARCHIVE%