Debian Codegraph @

.cirrus.yml

raw symbols SCIP
1 freebsd_task:
2 freebsd_instance:
3 image_family: freebsd-14-2
4 cpu: 4
5 memory: 4G
6 install_script:
7 - pkg update
8 - pkg install -y pkgconf cmake gmake capstone4 GraphicsMagick png
9 devel/sdl20 devel/libedit
10 script:
11 - ./configure --enable-debug || { cat config.log; exit 1; }
12 - gmake -j4
13 - gmake test || { cat Testing/Temporary/LastTest.log; exit 1; }
14
15 xcode_task:
16 osx_instance:
17 image: ghcr.io/cirruslabs/macos-runner:sonoma
18 env:
19 SDLVERSION: 2.26.5
20 PNGVERSION: 1.6.48
21 download_cache:
22 folder: dl_cache
23 populate_script:
24 - if [ ! -d dl_cache ]; then mkdir dl_cache ; fi
25 install_script:
26 # Download and install precompiled SDL2 Framework
27 - if [ ! -f dl_cache/SDL2-$SDLVERSION.dmg ]; then
28 wget -O dl_cache/SDL2-$SDLVERSION.dmg
29 https://github.com/libsdl-org/SDL/releases/download/release-$SDLVERSION/SDL2-$SDLVERSION.dmg ;
30 fi
31 - hdiutil attach dl_cache/SDL2-$SDLVERSION.dmg
32 - sudo cp -a /Volumes/SDL2/SDL2.framework /Library/Frameworks/
33 # Download, compile and install libpng Framework
34 - if [ ! -e dl_cache/png.framework ]; then
35 wget -O dl_cache/libpng-$PNGVERSION.tar.xz
36 "http://prdownloads.sourceforge.net/libpng/libpng-$PNGVERSION.tar.xz?download" ;
37 tar -xJf dl_cache/libpng-$PNGVERSION.tar.xz ;
38 cd libpng-$PNGVERSION ;
39 cmake -DPNG_FRAMEWORK=ON -DPNG_HARDWARE_OPTIMIZATIONS=OFF
40 -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING="10.13"
41 -DCMAKE_OSX_ARCHITECTURES:STRING="arm64;x86_64" . ;
42 cmake --build . --verbose --config Release -j$(sysctl -n hw.ncpu) ;
43 codesign --force -s - png.framework ;
44 cd .. ;
45 mv libpng-$PNGVERSION/png.framework dl_cache/ ;
46 rm -rf libpng-$PNGVERSION ;
47 fi
48 - sudo cp -a dl_cache/png.framework /Library/Frameworks/
49 # Download and install precompiled portmidi Framework
50 - if [ ! -e dl_cache/portmidi.framework ]; then
51 cd dl_cache ;
52 wget "https://hatari.tuxfamily.org/ci/portmidi.framework.zip" ;
53 unzip portmidi.framework.zip ;
54 mv license.txt portmidi-license.txt ;
55 cd .. ;
56 fi
57 - sudo cp -a dl_cache/portmidi.framework /Library/Frameworks/
58 # Download and install precompiled capsimage Framework
59 - if [ ! -e dl_cache/capsimage_5.1_macos-x86_64-arm64 ]; then
60 cd dl_cache ;
61 wget "https://hatari.tuxfamily.org/ci/capsimage_5.1_macos-x86_64-arm64_selfsigned.zip" ;
62 unzip capsimage_5.1_macos-x86_64-arm64_selfsigned.zip ;
63 cd capsimage_5.1_macos-x86_64-arm64 ;
64 mv LICENCE.txt DONATIONS.txt README.txt HISTORY.txt CAPSImage.framework ;
65 cd ../.. ;
66 fi
67 - sudo cp -a dl_cache/capsimage_5.1_macos-x86_64-arm64/CAPSImage.framework /Library/Frameworks/
68 script:
69 - export PATH=/usr/local/bin:$PATH
70 - mkdir build
71 - cd build
72 - cmake -DCMAKE_OSX_DEPLOYMENT_TARGET:STRING="10.13"
73 -DCMAKE_OSX_ARCHITECTURES:STRING="arm64;x86_64" ..
74 || { cat config.log; exit 1; }
75 - cmake --build . --verbose --config Release -j$(sysctl -n hw.ncpu) -t Hatari
76 - cp -a ../dl_cache/portmidi.framework src/hatari.app/Contents/Frameworks/
77 - cp -a ../dl_cache/capsimage_5.1_macos-x86_64-arm64/CAPSImage.framework src/hatari.app/Contents/Frameworks/
78 - codesign --force -s - --entitlements ../src/gui-osx/hatari.app.xcent src/Hatari.app
79 - cd ..
80 - mkdir hatari-snapshot
81 - echo $(git rev-parse HEAD) > hatari-snapshot/version.txt
82 - date >> hatari-snapshot/version.txt
83 - cp -a build/src/Hatari.app hatari-snapshot/
84 - cp -a doc gpl.txt readme.txt hatari-snapshot/
85 - cp dl_cache/portmidi-license.txt hatari-snapshot/
86 - zip -r hatari-snapshot.zip hatari-snapshot
87 hatari_artifacts:
88 path: "hatari-snapshot.zip"
89
90 macos14_task:
91 osx_instance:
92 image: ghcr.io/cirruslabs/macos-runner:sonoma
93 install_script:
94 - brew update
95 - brew install sdl2 libpng make tidy-html5 imagemagick capstone
96 script:
97 - export PATH=/usr/local/bin:$PATH
98 - ./configure --disable-osx-bundle --enable-debug
99 || { cat config.log; exit 1; }
100 - gmake -j$(sysctl -n hw.ncpu)
101 - gmake test || { cat Testing/Temporary/LastTest.log; exit 1; }
102
103 cygwin_task:
104 windows_container:
105 image: cirrusci/windowsservercore:2019
106 os_version: 2019
107 cpu: 4
108 memory: 4G
109 env:
110 BE: cygwin-gcc
111 install_script:
112 - choco install -y --no-progress cygwin
113 - C:\tools\cygwin\cygwinsetup.exe -q -P
114 make,cmake,gcc-core,pkg-config,zlib-devel,libSDL2-devel,libpng-devel
115 script:
116 - C:\tools\cygwin\bin\bash.exe -lc "cd '%cd%' ;
117 CFLAGS='-Werror -Wno-error=char-subscripts' cmake -G 'Unix Makefiles' ."
118 - C:\tools\cygwin\bin\bash.exe -lc "cd '%cd%' ; make -j4"
119 test_script:
120 - C:\tools\cygwin\bin\bash.exe -lc "cd '%cd%' ; ctest -j4"
121
122 msys2_task:
123 windows_container:
124 image: cirrusci/windowsservercore:2019
125 cpu: 4
126 memory: 4G
127 env:
128 MSYS: winsymlinks:nativestrict
129 MSYSTEM: MINGW64
130 CHERE_INVOKING: 1
131 choco_cache:
132 folder: '%temp%\chocolatey'
133 install_script:
134 - choco install -y --no-progress msys2
135 # Keep the log and temporary files out of the cache:
136 - del %temp%\chocolatey\*.log
137 - del %temp%\chocolatey\*log.txt
138 - del %temp%\chocolatey\*.tmp
139 # Install the required libraries:
140 - C:\tools\msys64\usr\bin\bash -lc "pacman --noconfirm -S --needed
141 make pkg-config diffutils
142 mingw-w64-x86_64-cmake
143 mingw-w64-x86_64-gcc
144 mingw-w64-x86_64-SDL2
145 mingw-w64-x86_64-libpng
146 mingw-w64-x86_64-portmidi"
147 script:
148 - C:\tools\msys64\usr\bin\bash -lc "cmake -G 'MSYS Makefiles' ."
149 - C:\tools\msys64\usr\bin\bash -lc "make -j4"
150 test_script:
151 - C:\tools\msys64\usr\bin\bash -lc "ctest"
152
153 visualstudio_task:
154 windows_container:
155 image: cirrusci/windowsservercore:2019
156 cpu: 4
157 memory: 4G
158 choco_cache:
159 folder: '%temp%\chocolatey'
160 install_script:
161 - choco install -y --no-progress cmake --install-arguments="ADD_CMAKE_TO_PATH=System"
162 - choco install -y --no-progress visualstudio2019community
163 visualstudio2019-workload-vctools
164 # Keep the log and temporary files out of the cache:
165 - del %temp%\chocolatey\*.log
166 - del %temp%\chocolatey\*log.txt
167 - del %temp%\chocolatey\*.tmp
168 - del %temp%\chocolatey\windowssdk\*.log
169 - del %temp%\chocolatey\VSLogs\*.svclog
170 # Install the required libraries and headers:
171 - curl -LO "https://github.com/libsdl-org/SDL/releases/download/release-2.32.2/SDL2-devel-2.32.2-VC.zip"
172 - powershell -command "Expand-Archive -Force '%cd%\SDL2-devel-2.32.2-VC.zip' '%cd%'"
173 - curl -O https://raw.githubusercontent.com/barrysteyn/scrypt-windows/master/win/include/unistd.h
174 - curl -O https://raw.githubusercontent.com/tronkko/dirent/master/include/dirent.h
175 - echo // > getopt.h
176 script:
177 - refreshenv
178 - cmake -G "Visual Studio 16 2019" -A X64 -DCMAKE_BUILD_TYPE="Release"
179 -DSDL2_DIR:PATH=SDL2-2.32.2\cmake .
180 - cmake --build . --verbose --target ALL_BUILD --config Release -j4
181 test_script:
182 - refreshenv
183 - ctest -C Release