0
0
mirror of https://github.com/lz4/lz4 synced 2026-01-18 17:21:30 +01:00

minor CI adjustments

This commit is contained in:
Yann Collet
2023-12-22 20:32:30 -08:00
parent 098a987de0
commit 736bcf76d6
4 changed files with 20 additions and 11 deletions

View File

@@ -130,7 +130,7 @@ jobs:
- name: make -C tests test-lz4
if: always()
run: make clean; CFLAGS='-Werror -O1' make -j V=1 -C tests test-lz4
run: make clean; CFLAGS='-Werror' make -j V=1 -C tests test-lz4
- name: make clangtest (clang only)
if: ${{ startsWith( matrix.cc , 'clang' ) }}
@@ -142,7 +142,7 @@ jobs:
- name: make -C tests test-lz4c32
if: ${{ matrix.x86 == 'true' }}
run: LDFLAGS='-Wl,--verbose' CFLAGS='-Werror -O1' make V=1 -C tests clean test-lz4c32
run: LDFLAGS='-Wl,--verbose' CFLAGS='-Werror' make V=1 -C tests clean test-lz4c32
###############################################################
@@ -152,11 +152,11 @@ jobs:
- name: make -C tests test CFLAGS='-mx32' || echo Ignore failure for now.
if: ${{ matrix.x32 == 'fail' }}
run: make clean; LDFLAGS='-Wl,--verbose' CFLAGS='-mx32 -O1' make -j V=1 -C tests test || $FIXME__LZ4_CI_IGNORE
run: make clean; LDFLAGS='-Wl,--verbose' CFLAGS='-mx32' make -j V=1 -C tests test || $FIXME__LZ4_CI_IGNORE
- name: make -C tests test-lz4c32 || echo Ignore failure for now.
if: ${{ matrix.x86 == 'fail' }}
run: make clean; LDFLAGS='-Wl,--verbose' CFLAGS='-Werror -O1' make V=1 -C tests test-lz4c32 || $FIXME__LZ4_CI_IGNORE
run: make clean; LDFLAGS='-Wl,--verbose' CFLAGS='-Werror' make V=1 -C tests test-lz4c32 || $FIXME__LZ4_CI_IGNORE
# #
###############################################################

View File

@@ -56,10 +56,10 @@ build_script:
make -v &&
echo ----- &&
set CFLAGS="--target=x86_64-w64-mingw32 -Werror -Wconversion -Wno-sign-conversion" &&
make -C programs lz4 CC=clang &&
make -C tests fullbench CC=clang &&
make -C tests fuzzer CC=clang &&
make -C lib lib CC=clang
make -C programs lz4 CC=clang V=1 &&
make -C tests fullbench CC=clang V=1 &&
make -C tests fuzzer CC=clang V=1 &&
make -C lib lib CC=clang V=1
)
- if [%COMPILER%]==[gcc] (
MKDIR bin\dll bin\static bin\example bin\include &&

View File

@@ -7,6 +7,7 @@
# GPL v2 License
#
import argparse
import glob
import subprocess
import filecmp
@@ -23,10 +24,18 @@ git_cmd = 'git'
test_dat_src = ['README.md']
head = 'v999'
parser = argparse.ArgumentParser()
parser.add_argument("--verbose", action="store_true", help="increase output verbosity")
args = parser.parse_args()
def debug_message(msg):
if args.verbose:
print(msg)
def proc(cmd_args, pipe=True, env=False):
if env == False:
env = os.environ.copy()
print("Executing command {} with env {}".format(cmd_args, env))
debug_message("Executing command {} with env {}".format(cmd_args, env))
if pipe:
s = subprocess.Popen(cmd_args,
stdout=subprocess.PIPE,

View File

@@ -204,9 +204,9 @@ def test_commit(branch, commit, last_commit, args, testFilePaths, have_mutt, hav
local_branch = branch.split('/')[1]
version = local_branch.rpartition('-')[2] + '_' + commit
if not args.dry_run:
execute('CFLAGS="-Werror -Wconversion -Wno-sign-conversion -DLZ4_GIT_COMMIT=%s" make -C programs clean lz4 CC=clang && ' % version +
execute('make clean; CFLAGS="-Werror -Wconversion -Wno-sign-conversion" CPPFLAGS="-DLZ4_GIT_COMMIT=%s" make -C programs lz4 CC=clang && ' % version +
'mv programs/lz4 programs/lz4_clang && ' +
'CPPFLAGS="-DLZ4_GIT_COMMIT=%s" make -C programs clean lz4 lz4c32 ' % version)
'make clean && CPPFLAGS="-DLZ4_GIT_COMMIT=%s" make -C programs lz4 lz4c32 ' % version)
md5_lz4 = hashfile(hashlib.md5(), clone_path + '/programs/lz4')
md5_lz4c32 = hashfile(hashlib.md5(), clone_path + '/programs/lz4c32')
md5_lz4_clang = hashfile(hashlib.md5(), clone_path + '/programs/lz4_clang')