@@ -44,17 +44,25 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install gcc-powerpc-linux-gnu gcc-arm-linux-gnueabi gcc-aarch64-linux-gnu libc6-dev-ppc64-powerpc-cross libcurl4-gnutls-dev lib64gcc-11-dev-powerpc-cross
|
sudo apt-get install gcc-powerpc-linux-gnu gcc-arm-linux-gnueabi gcc-aarch64-linux-gnu libc6-dev-ppc64-powerpc-cross libcurl4-gnutls-dev lib64gcc-13-dev-powerpc-cross
|
||||||
- name: Test
|
- name: gnu90 build
|
||||||
run: |-
|
run: make gnu90build && make clean
|
||||||
make gnu90build; make clean
|
- name: gnu99 build
|
||||||
make gnu99build; make clean
|
run: make gnu99build && make clean
|
||||||
make ppc64build V=1; make clean
|
- name: ppc64 build
|
||||||
make ppcbuild V=1; make clean
|
run: make ppc64build V=1 && make clean
|
||||||
make armbuild V=1; make clean
|
- name: ppc build
|
||||||
make aarch64build V=1; make clean
|
run: make ppcbuild V=1 && make clean
|
||||||
make -C tests test-legacy test-longmatch; make clean
|
- name: arm build
|
||||||
make -C lib libzstd-nomt; make clean
|
run: make armbuild V=1 && make clean
|
||||||
|
- name: aarch64 build
|
||||||
|
run: make aarch64build V=1 && make clean
|
||||||
|
- name: test-legacy
|
||||||
|
run: make -C tests test-legacy V=1 && make clean
|
||||||
|
- name: test-longmatch
|
||||||
|
run: make -C tests test-longmatch V=1 && make clean
|
||||||
|
- name: libzstd-nomt build
|
||||||
|
run: make -C lib libzstd-nomt V=1 && make clean
|
||||||
|
|
||||||
regression-test:
|
regression-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ jobs:
|
|||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
|
||||||
- name: cmake build and test
|
- name: cmake build and test
|
||||||
run: |
|
run: |
|
||||||
|
sudo apt install liblzma-dev
|
||||||
FUZZERTEST=-T1mn ZSTREAM_TESTTIME=-T1mn make cmakebuild V=1
|
FUZZERTEST=-T1mn ZSTREAM_TESTTIME=-T1mn make cmakebuild V=1
|
||||||
|
|
||||||
cpp-gnu90-c99-compatibility:
|
cpp-gnu90-c99-compatibility:
|
||||||
@@ -140,12 +141,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
|
||||||
- name: zlib wrapper test
|
- name: install valgrind
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get -qqq update
|
sudo apt-get -qqq update
|
||||||
make valgrindinstall
|
make valgrindinstall
|
||||||
make -C zlibWrapper test
|
- name: zlib wrapper test
|
||||||
make -C zlibWrapper test-valgrind
|
run: make -C zlibWrapper test
|
||||||
|
- name: zlib wrapper test under valgrind
|
||||||
|
run: make -C zlibWrapper test-valgrind
|
||||||
|
|
||||||
lz4-threadpool-libs:
|
lz4-threadpool-libs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -199,7 +202,9 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
|
||||||
- name: Build with ${{matrix.name}}
|
- name: Build with ${{matrix.name}}
|
||||||
run: ${{matrix.flags}} make zstd
|
run: |
|
||||||
|
sudo apt install liblzma-dev
|
||||||
|
${{matrix.flags}} make zstd
|
||||||
|
|
||||||
|
|
||||||
implicit-fall-through:
|
implicit-fall-through:
|
||||||
@@ -220,7 +225,7 @@ jobs:
|
|||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install build-essential python3-pip ninja-build liblz4-dev
|
sudo apt-get -y install build-essential python3-pip ninja-build liblz4-dev liblzma-dev
|
||||||
pip install --pre meson
|
pip install --pre meson
|
||||||
- name: Build with Meson
|
- name: Build with Meson
|
||||||
run: |
|
run: |
|
||||||
@@ -615,18 +620,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
make clangbuild
|
make clangbuild
|
||||||
|
|
||||||
clang-pgo:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
|
|
||||||
- name: Build PGO Zstd with Clang
|
|
||||||
env:
|
|
||||||
CC: clang-14
|
|
||||||
LLVM_PROFDATA: llvm-profdata-14
|
|
||||||
run: |
|
|
||||||
make -C programs zstd-pgo
|
|
||||||
./programs/zstd -b
|
|
||||||
|
|
||||||
gcc-pgo:
|
gcc-pgo:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -638,6 +631,19 @@ jobs:
|
|||||||
make -C programs zstd-pgo
|
make -C programs zstd-pgo
|
||||||
./programs/zstd -b
|
./programs/zstd -b
|
||||||
|
|
||||||
|
clang-pgo:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # tag=v4.1.1
|
||||||
|
- name: Build PGO Zstd with Clang
|
||||||
|
env:
|
||||||
|
CC: clang
|
||||||
|
run: |
|
||||||
|
sudo apt install -y llvm
|
||||||
|
llvm-profdata --version
|
||||||
|
make -C programs zstd-pgo
|
||||||
|
./programs/zstd -b
|
||||||
|
|
||||||
intel-cet-compatibility:
|
intel-cet-compatibility:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -340,7 +340,7 @@ void test_large_deflate(Byte *compr, uLong comprLen, Byte *uncompr,
|
|||||||
|
|
||||||
/* ===========================================================================
|
/* ===========================================================================
|
||||||
* Test inflate() with large buffers
|
* Test inflate() with large buffers
|
||||||
*/
|
*/
|
||||||
void test_large_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
|
void test_large_inflate(Byte *compr, uLong comprLen, Byte *uncompr,
|
||||||
uLong uncomprLen) {
|
uLong uncomprLen) {
|
||||||
int err;
|
int err;
|
||||||
@@ -442,8 +442,8 @@ void test_sync(Byte *compr, uLong comprLen, Byte *uncompr, uLong uncomprLen) {
|
|||||||
CHECK_ERR(err, "inflateSync");
|
CHECK_ERR(err, "inflateSync");
|
||||||
|
|
||||||
err = inflate(&d_stream, Z_FINISH);
|
err = inflate(&d_stream, Z_FINISH);
|
||||||
if (err != Z_DATA_ERROR) {
|
if (err != Z_STREAM_END) {
|
||||||
fprintf(stderr, "inflate should report DATA_ERROR\n");
|
fprintf(stderr, "inflate reported %i != %i (Z_STREAM_END)\n", err, Z_STREAM_END);
|
||||||
/* Because of incorrect adler32 */
|
/* Because of incorrect adler32 */
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user