8000 ci: run sha256 builds in ci · libgit2/libgit2@f80ce19 · GitHub
[go: up one dir, main page]

Skip to content

Commit f80ce19

Browse files
committed
ci: run sha256 builds in ci
1 parent 52abe12 commit f80ce19

File tree

1 file changed

+72
-40
lines changed

1 file changed

+72
-40
lines changed

.github/workflows/main.yml

Lines changed: 72 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,61 @@ jobs:
120120
CMAKE_OPTIONS: -DUSE_HTTPS=mbedTLS -DUSE_SHA1=HTTPS -DREGEX_BACKEND=pcre -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=valgrind -DUSE_GSSAPI=ON -DUSE_SSH=ON
121121
CMAKE_GENERATOR: Ninja
122122
os: ubuntu-latest
123-
- name: "Linux (MemorySanitizer)"
123+
- name: "macOS"
124+
id: macos
125+
os: macos-10.15
126+
env:
127+
CC: clang
128+
CMAKE_OPTIONS: -DREGEX_BACKEND=regcomp_l -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=leaks -DUSE_GSSAPI=ON
129+
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig
130+
SKIP_SSH_TESTS: true
131+
SKIP_NEGOTIATE_TESTS: true
132+
setup-script: osx
133+
- name: "Windows (amd64, Visual Studio)"
134+
id: windows-amd64-vs
135+
os: windows-2019
136+
env:
137+
ARCH: amd64
138+
CMAKE_GENERATOR: Visual Studio 16 2019
139+
CMAKE_OPTIONS: -A x64 -DWIN32_LEAKCHECK=ON -DDEPRECATE_HARD=ON
140+
SKIP_SSH_TESTS: true
141+
SKIP_NEGOTIATE_TESTS: true
142+
- name: "Windows (x86, Visual Studio)"
143+
id: windows-x86-vs
144+
os: windows-2019
145+
env:
146+
ARCH: x86
147+
CMAKE_GENERATOR: Visual Studio 16 2019
148+
CMAKE_OPTIONS: -A Win32 -DWIN32_LEAKCHECK=ON -DDEPRECATE_HARD=ON -DUSE_SHA1=HTTPS -DUSE_BUNDLED_ZLIB=ON
149+
SKIP_SSH_TESTS: true
150+
SKIP_NEGOTIATE_TESTS: true
151+
- name: "Windows (amd64, mingw)"
152+
id: windows-amd64-mingw
153+
os: windows-2019
154+
setup-script: mingw
155+
env:
156+
ARCH: amd64
157+
CMAKE_GENERATOR: MinGW Makefiles
158+
CMAKE_OPTIONS: -DDEPRECATE_HARD=ON
159+
BUILD_TEMP: D:\Temp
160+
BUILD_PATH: D:\Temp\mingw64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\CMake\bin
161+
SKIP_SSH_TESTS: true
162+
SKIP_NEGOTIATE_TESTS: true
163+
- name: "Windows (x86, mingw)"
164+
id: windows-x86-mingw
165+
os: windows-2019
166+
setup-script: mingw
167+
env:
168+
ARCH: x86
169+
CMAKE_GENERATOR: MinGW Makefiles
170+
CMAKE_OPTIONS: -DDEPRECATE_HARD=ON
171+
BUILD_TEMP: D:\Temp
172+
BUILD_PATH: D:\Temp\mingw32\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\CMake\bin
173+
SKIP_SSH_TESTS: true
174+
SKIP_NEGOTIATE_TESTS: true
175+
176+
# Sanitizers
177+
- name: "Sanitizer (Memory)"
124178
id: memorysanitizer
125179
container:
126180
name: focal
@@ -134,7 +188,7 @@ jobs:
134188
ASAN_SYMBOLIZER_PATH: /usr/bin/llvm-symbolizer-10
135189
UBSAN_OPTIONS: print_stacktrace=1
136190
os: ubuntu-latest
137-
- name: "Linux (UndefinedBehaviorSanitizer)"
191+
- name: "Sanitizer (UndefinedBehavior)"
138192
id: ubsanitizer
139193
container:
140194
name: focal
@@ -148,7 +202,7 @@ jobs:
148202
ASAN_SYMBOLIZER_PATH: /usr/bin/llvm-symbolizer-10
149203
UBSAN_OPTIONS: print_stacktrace=1
150204
os: ubuntu-latest
151-
- name: "Linux (ThreadSanitizer)"
205+
- name: "Sanitizer (Thread)"
152206
id: threadsanitizer
153207
container:
154208
name: focal
@@ -163,56 +217,34 @@ jobs:
163217
UBSAN_OPTIONS: print_stacktrace=1
164218
TSAN_OPTIONS: suppressions=/home/libgit2/source/script/thread-sanitizer.supp second_deadlock_stack=1
165219
os: ubuntu-latest
166-
- name: "macOS"
220+
221+
# Experimental: SHA256 support
222+
- name: "Linux (SHA256, Xenial, Clang, OpenSSL)"
223+
id: xenial-clang-openssl
224+
container:
225+
name: xenial
226+
env:
227+
CC: clang
228+
CMAKE_GENERATOR: Ninja
229+
CMAKE_OPTIONS: -DUSE_HTTPS=OpenSSL -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=valgrind -DUSE_GSSAPI=ON -DUSE_SSH=ON
230+
os: ubuntu-latest
231+
- name: "macOS (SHA256)"
167232
id: macos
168233
os: macos-10.15
169234
env:
170235
CC: clang
171-
CMAKE_OPTIONS: -DREGEX_BACKEND=regcomp_l -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=leaks -DUSE_GSSAPI=ON
236+
CMAKE_OPTIONS: -DREGEX_BACKEND=regcomp_l -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=leaks -DUSE_GSSAPI=ON -DEXPERIMENTAL_SHA256=ON
172237
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig
173238
SKIP_SSH_TESTS: true
174239
SKIP_NEGOTIATE_TESTS: true
175240
setup-script: osx
176-
- name: "Windows (amd64, Visual Studio)"
241+
- name: "Windows (SHA256, amd64, Visual Studio)"
177242
id: windows-amd64-vs
178243
os: windows-2019
179244
env:
180245
ARCH: amd64
181246
CMAKE_GENERATOR: Visual Studio 16 2019
182-
CMAKE_OPTIONS: -A x64 -DWIN32_LEAKCHECK=ON -DDEPRECATE_HARD=ON
183-
SKIP_SSH_TESTS: true
184-
SKIP_NEGOTIATE_TESTS: true
185-
- name: "Windows (x86, Visual Studio)"
186-
id: windows-x86-vs
187-
os: windows-2019
188-
env:
189-
ARCH: x86
190-
CMAKE_GENERATOR: Visual Studio 16 2019
191-
CMAKE_OPTIONS: -A Win32 -DWIN32_LEAKCHECK=ON -DDEPRECATE_HARD=ON -DUSE_SHA1=HTTPS -DUSE_BUNDLED_ZLIB=ON
192-
SKIP_SSH_TESTS: true
193-
SKIP_NEGOTIATE_TESTS: true
194-
- name: "Windows (amd64, mingw)"
195-
id: windows-amd64-mingw
196-
os: windows-2019
197-
setup-script: mingw
198-
env:
199-
ARCH: amd64
200-
CMAKE_GENERATOR: MinGW Makefiles
201-
CMAKE_OPTIONS: -DDEPRECATE_HARD=ON
202-
BUILD_TEMP: D:\Temp
203-
BUILD_PATH: D:\Temp\mingw64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\CMake\bin
204-
SKIP_SSH_TESTS: true
205-
SKIP_NEGOTIATE_TESTS: true
206-
- name: "Windows (x86, mingw)"
207-
id: windows-x86-mingw
208-
os: windows-2019
209-
setup-script: mingw
210-
env:
211-
ARCH: x86
212-
CMAKE_GENERATOR: MinGW Makefiles
213-
CMAKE_OPTIONS: -DDEPRECATE_HARD=ON
214-
BUILD_TEMP: D:\Temp
215-
BUILD_PATH: D:\Temp\mingw32\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files (x86)\CMake\bin
247+
CMAKE_OPTIONS: -A x64 -DWIN32_LEAKCHECK=ON -DDEPRECATE_HARD=ON -DEXPERIMENTAL_SHA256=ON
216248
SKIP_SSH_TESTS: true
217249
SKIP_NEGOTIATE_TESTS: true
218250
fail-fast: false

0 commit comments

Comments
 (0)
0