mirror of
https://github.com/lz4/lz4
synced 2026-01-18 17:21:30 +01:00
minor CI adjustments
This commit is contained in:
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
# #
|
||||
###############################################################
|
||||
|
||||
@@ -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 &&
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user