-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.appveyor.yml
140 lines (133 loc) · 4.69 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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: '{build} {branch}'
image:
- Visual Studio 2022 # Windows Server 2019
- Visual Studio 2017 # Windows Server 2016
- Visual Studio 2015 # Windows Server 2012 R2
- macOS-monterey # 12.7.3
- macOS-sonoma # 14.2.1
- macOS-ventura # 13.6.4
- macOS-bigsur # 11.7.1
- Ubuntu2204
- Ubuntu2004
- Ubuntu1804
- Ubuntu1604
environment:
MESA_DIST_WIN_VER: 23.0.1
init:
- appveyor version
- cmd: ver
- cmd: systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
- sh: type system_profiler && system_profiler SPSoftwareDataType SPHardwareDataType || true
- sh: type lsb_release && lsb_release -a || true
- sh: type uname && uname -a || true
matrix:
allow_failures:
- image: macOS-catalina
- image: macOS-mojave
for:
-
matrix:
only:
- image: Ubuntu2204
environment:
APPIMAGE_EXTRACT_AND_RUN: 1 # 2204 doesn’t have libfuse2
services:
- docker
install:
- time docker pull ghcr.io/knossos-project/arch
build_script:
- time docker run --privileged --cap-add=ALL -v /lib/modules:/lib/modules -v /dev:/dev -v ${APPVEYOR_BUILD_FOLDER}:/root/knossos -e APPVEYOR_REPO_BRANCH ghcr.io/knossos-project/arch bash -c '/root/knossos/ci/build_linux.sh'
artifacts:
- path: '*nightly.*'
-
matrix:
only:
- image: Ubuntu2004
- image: Ubuntu1804
- image: Ubuntu1604
build: off
before_test:
- curl --fail -JLO https://github.com/knossos-project/knossos/releases/download/nightly-dev/linux.$APPVEYOR_REPO_BRANCH-KNOSSOS.nightly.AppImage
- chmod +x linux.$APPVEYOR_REPO_BRANCH-KNOSSOS.nightly.AppImage
deploy: off
-
matrix:
only:
- image: macOS-monterey
environment:
MACOSX_DEPLOYMENT_TARGET: 11.0 # bigsur
install:
- brew pin appveyor-build-agent # https://github.com/appveyor/ci/issues/3763#issuecomment-1003168277
- time brew update
- time brew upgrade || true # skipped upgrades for pinned packages don’t return cleanly
- time brew remove qt6 || true
- time brew install boost ninja python qt5 snappy python-requests
- time brew install --overwrite cmake # for building from source, brew needs its own cmake, which conflicts with the preinstalled one
- time brew tap --force homebrew/core
- sed -e 's/"qt"/"qt@5"/' -i bak $(brew edit --print-path quazip)
# Warning: `brew install` ignores locally edited casks and formulae if HOMEBREW_NO_INSTALL_FROM_API is not set.
- time env HOMEBREW_NO_INSTALL_FROM_API=1 brew install -s quazip # build from source (with patched qt5 dependency)
- sh ci/build_macos_PythonQt.sh
build_script:
- sh ci/build_macos.sh
test_script:
- ../knossos-build/KNOSSOS.app/Contents/MacOS/knossos exit
artifacts:
- path: '*nightly.*'
-
matrix:
only:
- image: macOS-sonoma
- image: macOS-ventura
- image: macOS-bigsur
before_test:
- curl --fail -JLO https://github.com/knossos-project/knossos/releases/download/nightly-dev/macos.$APPVEYOR_REPO_BRANCH-KNOSSOS.nightly.app.zip
- unzip -q macos.$APPVEYOR_REPO_BRANCH-KNOSSOS.nightly.app.zip
build: off
test_script:
- KNOSSOS.app/Contents/MacOS/knossos exit
deploy: off
-
matrix:
only:
- image: Visual Studio 2022
environment:
MSYSTEM: MINGW64
build_script:
- cmd: C:\msys64\usr\bin\bash -lc "pacman -Syuu --noconfirm"
- cmd: C:\msys64\usr\bin\bash -lc "$(cygpath ${APPVEYOR_BUILD_FOLDER})/ci/build_windows.sh"
artifacts:
- path: '*nightly.*'
-
matrix:
only:
- image: Visual Studio 2017
- image: Visual Studio 2015
build: off
before_test:
- curl --fail -JLO https://github.com/knossos-project/knossos/releases/download/nightly-dev/win.%APPVEYOR_REPO_BRANCH%-KNOSSOS.nightly.exe
deploy: off
test_script:
- cmd: curl --fail -JLO https://github.com/pal1000/mesa-dist-win/releases/download/%MESA_DIST_WIN_VER%/mesa3d-%MESA_DIST_WIN_VER%-release-msvc.7z
- cmd: 7z e "-i!x64/*.dll" "-i!x64/*.json" "mesa3d-*-release-msvc.7z"
- cmd: cp -v C:/Python3*-x64/python3*.dll . || true
- cmd: win.%APPVEYOR_REPO_BRANCH%-KNOSSOS.nightly.exe exit
# custom screen specification is required for 1604, because the default used to be only 8 bit
- sh: time xvfb-run -e /dev/stdout --auto-servernum -s '-screen 0 1024x768x24' ./linux.$APPVEYOR_REPO_BRANCH-KNOSSOS.nightly.AppImage exit
deploy:
- provider: GitHub
tag: nightly
auth_token:
secure: t9BAyR+k93XD/dXN/gaOgApdGKOxb4lvDtpci8pHHxghvSxd/wNGdFFe/N9WqZSr
artifact: /.*\.KNOSSOS\..*/
prerelease: true
force_update: true
on:
branch: master
- provider: GitHub
tag: nightly-dev
auth_token:
secure: t9BAyR+k93XD/dXN/gaOgApdGKOxb4lvDtpci8pHHxghvSxd/wNGdFFe/N9WqZSr
artifact: /.*-KNOSSOS\..*/
prerelease: true
force_update: true