File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,8 +112,16 @@ jobs:
112112 -DICC_LOG_SAFE=ON \
113113 -Wno-dev
114114 make -j$(nproc)
115+ ICC_PROFLIB_STATIC=$(find IccProfLib -maxdepth 1 -name 'libIccProfLib2-static*.a' -print -quit)
116+ ICC_XML_STATIC=$(find IccXML -maxdepth 1 -name 'libIccXML2-static*.a' -print -quit)
117+ test -n "$ICC_PROFLIB_STATIC"
118+ test -n "$ICC_XML_STATIC"
119+ ICC_PROFLIB_STATIC=$(realpath "$ICC_PROFLIB_STATIC")
120+ ICC_XML_STATIC=$(realpath "$ICC_XML_STATIC")
121+ echo "ICC_PROFLIB_STATIC=${ICC_PROFLIB_STATIC}" >> "$GITHUB_ENV"
122+ echo "ICC_XML_STATIC=${ICC_XML_STATIC}" >> "$GITHUB_ENV"
115123 echo "Libraries built:"
116- ls -lh IccProfLib/libIccProfLib2-static.a IccXML/libIccXML2-static.a
124+ ls -lh "$ICC_PROFLIB_STATIC" "$ICC_XML_STATIC"
117125
118126 - name : Build iccanalyzer-lite
119127 run : |
@@ -146,8 +154,8 @@ jobs:
146154 -I /usr/include/libxml2 \
147155 "${src_dir}/${tool}.cpp" \
148156 -Wl,--whole-archive \
149- "${ICCDEV_BUILD}/IccXML/libIccXML2-static.a " \
150- "${ICCDEV_BUILD}/IccProfLib/libIccProfLib2-static.a " \
157+ "${ICC_XML_STATIC} " \
158+ "${ICC_PROFLIB_STATIC} " \
151159 -Wl,--no-whole-archive \
152160 -lxml2 -ltiff -lz -lpng -ljpeg \
153161 -o "${tool}_unsafe"
You can’t perform that action at this time.
0 commit comments