File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 39
39
- name : Determine version
40
40
shell : bash
41
41
run : |
42
- VERSION=$(grep -Po '(?<= set\ (log4cxx_VER ") (.*)(?="\))' src/cmake/projectVersionDetails.cmake)
42
+ VERSION=$(sed -n -e "s/^ set(log4cxx_VER \"\ (.*\)\")/\1/p" < src/cmake/projectVersionDetails.cmake)
43
43
echo "VERSION=$VERSION" >> $GITHUB_ENV
44
44
45
45
- name : Create release files
74
74
- name : Determine version
75
75
shell : bash
76
76
run : |
77
- VERSION=$(grep -Po '(?<= set\ (log4cxx_VER ") (.*)(?="\))' src/cmake/projectVersionDetails.cmake)
77
+ VERSION=$(sed -n -e "s/^ set(log4cxx_VER \"\ (.*\)\")/\1/p" < src/cmake/projectVersionDetails.cmake)
78
78
echo "VERSION=$VERSION" >> $GITHUB_ENV
79
79
80
80
- name : Download artifacts
@@ -89,12 +89,14 @@ jobs:
89
89
shell : bash
90
90
run : |
91
91
./package.sh
92
- current=CMakeFiles/apache-log4cxx-$VERSION
92
+ current=CMakeFiles/dist/ apache-log4cxx-$VERSION
93
93
reference=CMakeFiles/reference/apache-log4cxx-$VERSION
94
94
for format in tar.gz zip; do
95
95
for hash in sha256 sha512; do
96
- if cmp --silent "$reference.$format.$hash" "$current.$format.$hash"; then
96
+ if ! cmp --silent "$reference.$format.$hash" "$current.$format.$hash"; then
97
97
echo Files apache-log4cxx-$VERSION.$format differ\! >& 2
98
+ cat $reference.$format.$hash >& 2
99
+ cat $current.$format.$hash >& 2
98
100
exit 1
99
101
fi
100
102
done
Original file line number Diff line number Diff line change 3
3
set -e
4
4
5
5
# Determine the version and build timestamp
6
- VERSION=$( grep -Po ' (?<= set\ (log4cxx_VER ") (.*)(?="\)) ' src/cmake/projectVersionDetails.cmake)
6
+ VERSION=$( sed -n -e " s/^ set(log4cxx_VER \" \ (.*\) \" )/\1/p " < src/cmake/projectVersionDetails.cmake)
7
7
if ! echo " $VERSION " | grep -Pq ' ^\d+\.\d+\.\d+$' ; then
8
8
echo Invalid version number: " $VERSION " >& 2
9
9
exit 1
10
10
fi
11
11
12
- OUTPUT_TIMESTAMP=$( grep -Po ' (?<= set\ (log4cxx_OUTPUT_TIMESTAMP ") (.*)(?="\)) ' src/cmake/projectVersionDetails.cmake)
12
+ OUTPUT_TIMESTAMP=$( sed -n -e " s/^ set(log4cxx_OUTPUT_TIMESTAMP \" \ (.*\) \" )/\1/p " < src/cmake/projectVersionDetails.cmake)
13
13
if ! echo " $OUTPUT_TIMESTAMP " | grep -Pq ' ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z$' ; then
14
14
echo Invalid build timestamp: " $OUTPUT_TIMESTAMP " >& 2
15
15
echo Run ' `' date -u +%Y-%m-%dT%H:%M:%SZ' `' to generate it
You can’t perform that action at this time.
0 commit comments