Skip to content

Commit 7357315

Browse files
committed
Changes for deployment
1 parent 1d9636b commit 7357315

22 files changed

+94
-90
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
compiler: 'gcc'
2222
configure_options: ''
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- name: Install build dependencies
2626
run: |
2727
sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config
@@ -36,6 +36,30 @@ jobs:
3636
- name: Run tests
3737
run: |
3838
tests/runtests.sh
39+
build_dist:
40+
runs-on: ubuntu-22.04
41+
strategy:
42+
matrix:
43+
include:
44+
- architecture: 'x64'
45+
compiler: 'gcc'
46+
configure_options: ''
47+
steps:
48+
- uses: actions/checkout@v4
49+
- name: Install build dependencies
50+
run: |
51+
sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config
52+
- name: Download test data
53+
run: |
54+
if test -x "synctestdata.sh"; then ./synctestdata.sh; fi
55+
- name: Building from source
56+
env:
57+
CC: ${{ matrix.compiler }}
58+
run: |
59+
tests/build.sh ${{ matrix.configure_options }}
60+
- name: Run tests
61+
run: |
62+
make distcheck
3963
coverage_ubuntu:
4064
runs-on: ubuntu-22.04
4165
strategy:
@@ -48,7 +72,7 @@ jobs:
4872
compiler: 'gcc'
4973
configure_options: ''
5074
steps:
51-
- uses: actions/checkout@v3
75+
- uses: actions/checkout@v4
5276
- name: Install build dependencies
5377
run: |
5478
sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config
@@ -69,6 +93,7 @@ jobs:
6993
(cd ${DIRECTORY} && find . -maxdepth 1 -name \*.gcno -type f -exec gcov -pb {} \;) \
7094
done
7195
- name: Upload coverage report to Codecov
72-
uses: codecov/codecov-action@v3
96+
uses: codecov/codecov-action@v4
7397
with:
7498
name: linux-${{ matrix.architecture }}-gcc-no-optimization
99+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/build_freebsd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build_freebsd:
77
runs-on: ubuntu-22.04
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
- name: Building from source
1111
id: build_freebsd
1212
uses: vmactions/freebsd-vm@v1

.github/workflows/build_shared.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
compiler: 'gcc'
1515
configure_options: ''
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- name: Install build dependencies
1919
run: |
2020
sudo apt-get -y install autoconf automake autopoint build-essential git libtool pkg-config

Makefile.am

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,15 @@ EXTRA_DIST = \
4545
$(PKGCONFIG_FILES) \
4646
$(SPEC_FILES)
4747

48-
MAINTAINERCLEANFILES = \
49-
Makefile.in
48+
DISTCLEANFILES = \
49+
config.status \
50+
config.cache \
51+
config.log \
52+
libfvalue.pc \
53+
libfvalue.spec \
54+
Makefile \
55+
Makefile.in \
56+
po/Makevars
5057

5158
pkgconfigdir = $(libdir)/pkgconfig
5259

@@ -71,15 +78,3 @@ library:
7178
(cd $(srcdir)/libfvalue && $(MAKE) $(AM_MAKEFLAGS))
7279
(cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS))
7380

74-
distclean: clean
75-
-rm -f Makefile
76-
-rm -f config.status
77-
-rm -f config.cache
78-
-rm -f config.log
79-
-rm -f libfvalue.pc
80-
-rm -f libfvalue.spec
81-
@for dir in ${subdirs}; do \
82-
(cd $$dir && $(MAKE) distclean) \
83-
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
84-
done && test -z "$$fail"
85-

common/Makefile.am

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
AM_CPPFLAGS = -I$(top_srcdir)/include
1+
AM_CPPFLAGS = \
2+
-I../include -I$(top_srcdir)/include
23

34
EXTRA_DIST = \
45
byte_stream.h \
@@ -15,11 +16,9 @@ EXTRA_DIST = \
1516
types.h.in \
1617
wide_string.h
1718

18-
MAINTAINERCLEANFILES = \
19+
DISTCLEANFILES = \
20+
config.h \
21+
types.h \
22+
Makefile \
1923
Makefile.in
2024

21-
distclean: clean
22-
-rm -f config.h
23-
-rm -f types.h
24-
-rm -f Makefile
25-

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ AC_PREREQ([2.71])
22

33
AC_INIT(
44
[libfvalue],
5-
[20240410],
5+
[20240415],
66
77

88
AC_CONFIG_SRCDIR(

include/Makefile.am

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ EXTRA_DIST = \
1515
libfvalue/features.h.in \
1616
libfvalue/types.h.in
1717

18-
MAINTAINERCLEANFILES = \
18+
DISTCLEANFILES = \
19+
libfvalue.h \
20+
libfvalue/definitions.h \
21+
libfvalue/features.h \
22+
libfvalue/types.h \
23+
Makefile \
1924
Makefile.in
2025

21-
distclean: clean
22-
-rm -f libfvalue.h
23-
-rm -f libfvalue/definitions.h
24-
-rm -f libfvalue/features.h
25-
-rm -f libfvalue/types.h
26-
-rm -f Makefile
27-

libfvalue/Makefile.am

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
AM_CPPFLAGS = \
2-
-I$(top_srcdir)/include \
3-
-I$(top_srcdir)/common \
2+
-I../include -I$(top_srcdir)/include \
3+
-I../common -I$(top_srcdir)/common \
44
@LIBCERROR_CPPFLAGS@ \
55
@LIBCTHREADS_CPPFLAGS@ \
66
@LIBCDATA_CPPFLAGS@ \
@@ -63,14 +63,12 @@ EXTRA_DIST = \
6363
libfvalue.rc \
6464
libfvalue.rc.in
6565

66-
MAINTAINERCLEANFILES = \
66+
DISTCLEANFILES = \
67+
libfvalue_definitions.h \
68+
libfvalue.rc \
69+
Makefile \
6770
Makefile.in
6871

69-
distclean: clean
70-
-rm -f libfvalue_definitions.h
71-
-rm -f libfvalue.rc
72-
-rm -f Makefile
73-
7472
sources-local: $(BUILT_SOURCES)
7573

7674
splint-local:

m4/libcdata.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dnl Checks for libcdata required headers and functions
22
dnl
3-
dnl Version: 20240314
3+
dnl Version: 20240413
44

55
dnl Function to detect if libcdata is available
66
dnl ac_libcdata_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments
@@ -531,7 +531,7 @@ dnl Function to detect if libcdata dependencies are available
531531
AC_DEFUN([AX_LIBCDATA_CHECK_LOCAL],
532532
[dnl No additional checks.
533533
534-
ac_cv_libcdata_CPPFLAGS="-I../libcdata";
534+
ac_cv_libcdata_CPPFLAGS="-I../libcdata -I\$(top_srcdir)/libcdata";
535535
ac_cv_libcdata_LIBADD="../libcdata/libcdata.la";
536536
537537
ac_cv_libcdata=local

m4/libcerror.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dnl Checks for libcerror required headers and functions
22
dnl
3-
dnl Version: 20240314
3+
dnl Version: 20240413
44

55
dnl Function to detect if libcerror is available
66
dnl ac_libcerror_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l<library> arguments
@@ -169,7 +169,7 @@ AC_DEFUN([AX_LIBCERROR_CHECK_LOCAL],
169169
])
170170
])
171171
172-
ac_cv_libcerror_CPPFLAGS="-I../libcerror";
172+
ac_cv_libcerror_CPPFLAGS="-I../libcerror -I\$(top_srcdir)/libcerror";
173173
ac_cv_libcerror_LIBADD="../libcerror/libcerror.la";
174174
175175
ac_cv_libcerror=local

0 commit comments

Comments
 (0)