blob: 39b7fb723d8419ef5b88c08ba112ac8585211496 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
name: "neozip: Pigz"
on:
workflow_call:
workflow_dispatch:
jobs:
pigz:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Ubuntu GCC
os: ubuntu-latest
compiler: gcc
cmake-args: ""
- name: Ubuntu Clang
os: ubuntu-latest
compiler: clang
packages: llvm-15 llvm-15-tools
- name: Ubuntu GCC AARCH64
os: ubuntu-24.04-arm
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
show-progress: 'false'
- name: Install packages (Ubuntu)
if: runner.os == 'Linux' && matrix.packages
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.packages }}
- name: Generate project files
run: |
cmake ${{ matrix.cmake-args }} \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DZLIB_ROOT=../.. \
-DWITH_CODE_COVERAGE=OFF \
-DWITH_MAINTAINER_WARNINGS=ON
working-directory: neozip/test/pigz
env:
CC: ${{ matrix.compiler }}
CI: true
- name: Compile source code
run: cmake --build . -j5 --config Release
working-directory: neozip/test/pigz
- name: Run test cases
run: ctest --verbose -C Release --output-on-failure --max-width 120 -j 5
working-directory: neozip/test/pigz
- name: Upload build errors
uses: actions/upload-artifact@v7
if: failure()
with:
name: ${{ matrix.name }} (pigz)
path: |
**/CMakeFiles/CMakeOutput.log
**/CMakeFiles/CMakeError.log
**/Testing/Temporary/*
retention-days: 30
|