blob: 49c3576c02f0b664041c46607ff4f10426d7164c (
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
71
72
73
74
75
76
77
78
79
|
name: "neozip: Configure"
on:
workflow_call:
workflow_dispatch:
jobs:
configure:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- name: Ubuntu GCC
os: ubuntu-latest
compiler: gcc
cflags: ""
ldflags: ""
configure-args: --warn
- name: Ubuntu Clang
os: ubuntu-latest
compiler: clang
configure-args: --warn
- name: Ubuntu GCC Compat
os: ubuntu-latest
compiler: gcc
configure-args: --warn --zlib-compat
- name: macOS Clang
os: macos-latest
compiler: clang
configure-args: --warn
- name: macOS Clang Compat
os: macos-latest
compiler: clang
configure-args: --warn --zlib-compat
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
show-progress: 'false'
- name: Install packages (macOS)
if: runner.os == 'macOS'
run: brew install ninja
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
- name: Generate project files
working-directory: neozip
run: ./configure ${{ matrix.configure-args }}
env:
CC: ${{ matrix.compiler }}
CFLAGS: ${{ matrix.cflags }}
LDFLAGS: ${{ matrix.ldflags }}
CI: true
- name: Compile source code
run: make -j5
working-directory: neozip
- name: Run test cases
run: make test
working-directory: neozip
- name: Upload build errors
uses: actions/upload-artifact@v7
if: failure()
with:
name: ${{ matrix.name }} (configure)
path: |
neozip/Makefile
neozip/configure.log
retention-days: 30
|