-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.appveyor.yml
61 lines (56 loc) · 1.71 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
image:
- Ubuntu2004
- Ubuntu2204
- Visual Studio 2019
- Visual Studio 2022
environment:
USE_BAZEL_VERSION: 7.4.1
BAZELISK_VERSION: 1.25.0
VCVARSALL: x64
platform: "x64"
for:
-
matrix:
only:
- image: Ubuntu2004
- image: Ubuntu2204
environment:
BAZELISK_BINARY: bazelisk-linux-amd64
BAZEL_BINARY: bazel
-
matrix:
only:
- image: Visual Studio 2019
environment:
VCVARSALLPATH: C:\"Program Files (x86)\Microsoft Visual Studio"\2019\Community\VC\Auxiliary\Build\vcvarsall.bat
GYP_MSVS_VERSION: 2019
BAZELISK_BINARY: bazelisk-windows-amd64.exe
BAZEL_BINARY: bazel.exe
-
matrix:
only:
- image: Visual Studio 2022
environment:
VCVARSALLPATH: C:\"Program Files\Microsoft Visual Studio"\2022\Community\VC\Auxiliary\Build\vcvarsall.bat
GYP_MSVS_VERSION: 2022
BAZELISK_BINARY: bazelisk-windows-amd64.exe
BAZEL_BINARY: bazel.exe
init:
- cmd: call %VCVARSALLPATH% %VCVARSALL%
install:
# Create a bin folder where bazelisk will be located and add it in the path
- ps: New-Item -Type dir "$env:HOME\bin"
- ps: |
if ($isLinux) {
$env:PATH += ":$env:HOME/bin"
} else {
$Env:Path += ";$env:HOME/bin"
}
# Download bazelisk from github
- ps: Invoke-Webrequest "https://github.com/bazelbuild/bazelisk/releases/download/v$env:BAZELISK_VERSION/$env:BAZELISK_BINARY" -OutFile "$env:BAZELISK_BINARY"
# Renaming bazelisk to bazel is quite a common practice, people got used to run bazel build and not bazelisk build
- ps: Copy-Item -Path "$env:BAZELISK_BINARY" -Destination "$env:HOME\bin\$env:BAZEL_BINARY" -Recurse
- sh: chmod +x $HOME/bin/bazel
build_script:
- cmd: pwsh .\script.ps1
- sh: pwsh -File script.ps1