-
Notifications
You must be signed in to change notification settings - Fork 253
/
.cirrus.yml
111 lines (97 loc) · 4.73 KB
/
.cirrus.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
env:
CIRRUS_CLONE_DEPTH: 1
MSBUILDDISABLENODEREUSE: 1
linux_arm64_task:
arm_container:
cpu: 4
memory: 4G
dockerfile: .ci/linux_arm64/Dockerfile
build_script:
- dotnet msbuild -p:Platform=ARM64 -p:Configuration=UnixRelease -t:build_solution -m ./src/BuildTargets/BuildTargets.csproj
test_script:
- dotnet msbuild -p:Platform=ARM64 -p:Configuration=Release -t:run_unit_tests -m ./src/BuildTargets/BuildTargets.csproj
regressions_script:
- dotnet msbuild -p:Platform=ARM64 -p:Configuration=Release -t:run_regressions -m ./src/BuildTargets/BuildTargets.csproj
nupkg_script:
- dotnet msbuild -p:Platform=ARM64 -p:Configuration=Release -t:create_runtime_nupkg -m ./src/BuildTargets/BuildTargets.csproj
release_script:
- dotnet msbuild -p:Platform=ARM64 -p:Configuration=Release -t:create_release -m ./src/BuildTargets/BuildTargets.csproj
binaries_artifacts:
path: "bin/*"
linux_x64_task:
container:
cpu: 4
memory: 4G
dockerfile: .ci/linux/Dockerfile
build_script:
- dotnet msbuild -p:Platform=x64 -p:Configuration=UnixRelease -t:build_solution -m ./src/BuildTargets/BuildTargets.csproj
test_script:
- dotnet msbuild -p:Platform=x64 -p:Configuration=Release -t:run_unit_tests -m ./src/BuildTargets/BuildTargets.csproj
regressions_script:
- dotnet msbuild -p:Platform=x64 -p:Configuration=Release -t:run_regressions -m ./src/BuildTargets/BuildTargets.csproj
nupkg_script:
- dotnet msbuild -p:Platform=x64 -p:Configuration=Release -t:create_runtime_nupkg -m ./src/BuildTargets/BuildTargets.csproj
release_script:
- dotnet msbuild -p:Platform=x64 -p:Configuration=Release -t:create_release -m ./src/BuildTargets/BuildTargets.csproj
binaries_artifacts:
path: "bin/*"
darwin_arm64_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
#image: big-sur-xcode-12.4
env:
PATH: $HOME/.dotnet:$PATH
install_script:
- brew install pkg-config cmake capstone p7zip
- curl -O https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh
- bash dotnet-install.sh --channel 6.0
- bash dotnet-install.sh --channel 8.0
prepare_script:
- dotnet nuget locals all --clear
build_script:
- dotnet msbuild -p:Platform=ARM64 -p:Configuration=UnixRelease -t:build_solution -m ./src/BuildTargets/BuildTargets.csproj
test_script:
- dotnet msbuild -p:Platform=ARM64 -p:Configuration=Release -t:run_unit_tests -m ./src/BuildTargets/BuildTargets.csproj
regressions_script:
- dotnet msbuild -p:Platform=ARM64 -p:Configuration=Release -t:run_regressions -m ./src/BuildTargets/BuildTargets.csproj
nupkg_script:
- dotnet msbuild -p:Platform=ARM64 -p:Configuration=Release -t:create_runtime_nupkg -m ./src/BuildTargets/BuildTargets.csproj
release_script:
- dotnet msbuild -p:Platform=ARM64 -p:Configuration=Release -t:create_release -m ./src/BuildTargets/BuildTargets.csproj
binaries_artifacts:
path: "bin/*"
windows_x64_task:
windows_container:
cpu: 4
memory: 6G
dockerfile: .ci/windows/Dockerfile
os_version: 2019
clone_script:
# Use custom cloning to set the autocrlf to true
CMD.exe /C ECHO ON &
IF NOT DEFINED CIRRUS_PR (
git config --global core.autocrlf true &
git clone --depth %CIRRUS_CLONE_DEPTH% --recursive --branch=%CIRRUS_BRANCH% https://x-access-token:%CIRRUS_REPO_CLONE_TOKEN%@github.com/%CIRRUS_REPO_FULL_NAME%.git %CIRRUS_WORKING_DIR% &
git reset --hard %CIRRUS_CHANGE_IN_REPO%
) ELSE (
git config --global core.autocrlf true &
git clone --depth %CIRRUS_CLONE_DEPTH% --recursive https://x-access-token:%CIRRUS_REPO_CLONE_TOKEN%@github.com/%CIRRUS_REPO_FULL_NAME%.git %CIRRUS_WORKING_DIR% &
git fetch origin pull/%CIRRUS_PR%/head:pull/%CIRRUS_PR% &
git reset --hard %CIRRUS_CHANGE_IN_REPO%
)
prepare_script:
- dotnet nuget locals all --clear
build_script:
- dotnet msbuild -p:Platform=x64 -p:Configuration=Release -v:m -t:build_solution -m ./src/BuildTargets/BuildTargets.csproj
test_script:
- dotnet msbuild -p:Platform=x64 -p:Configuration=Release -v:m -t:run_unit_tests -m ./src/BuildTargets/BuildTargets.csproj
regressions_script:
- dotnet msbuild -p:Platform=x64 -p:Configuration=Release -v:m -t:run_regressions -m ./src/BuildTargets/BuildTargets.csproj
nupkg_script:
- dotnet msbuild -p:Platform=x64 -p:Configuration=Release -v:m -t:create_runtime_nupkg -m ./src/BuildTargets/BuildTargets.csproj
installer_script:
- dotnet msbuild -p:Platform=x64 -p:Configuration=Release -v:m -t:create_msi_wix -m ./src/BuildTargets/BuildTargets.csproj
release_script:
- dotnet msbuild -p:Platform=x64 -p:Configuration=Release -v:m -t:create_release -m ./src/BuildTargets/BuildTargets.csproj
binaries_artifacts:
path: "bin/*"