Skip to content

Commit f65ffc3

Browse files
author
Victor Paleologue
committed
github.workflow: Makes a stand-alone package.
That will ensure clients that they can link with indirect dependencies.
1 parent fe4a5f4 commit f65ffc3

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/make_feed.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,12 @@ echo "<toolchain>" > feed.xml
1313
for URL in $PACKAGES_URLS; do
1414
ZIP=package.zip
1515
wget -q $URL -O $ZIP;
16-
NAME=$(unzip -p $ZIP package.xml | xmllint --xpath "string(/package/@name)" -)
17-
VERSION=$(unzip -p $ZIP package.xml | xmllint --xpath "string(/package/@version)" -)
16+
PACKAGE_XML_IN_ZIP=$(zipinfo -1 $ZIP | grep package.xml)
17+
NAME=$(unzip -p $ZIP $PACKAGE_XML_IN_ZIP | xmllint --xpath "string(/package/@name)" -)
18+
VERSION=$(unzip -p $ZIP $PACKAGE_XML_IN_ZIP | xmllint --xpath "string(/package/@version)" -)
1819
echo " <package name=\"${NAME}\" version=\"${VERSION}\" url=\"${URL}\" />" >> feed.xml
1920
rm $ZIP
2021
done
21-
22-
echo "Adding sub-toolchain from ${FEED}"
23-
echo " <feed url=\"${FEED}\" />" >> feed.xml
2422
echo "</toolchain>" >> feed.xml
2523

2624
realpath feed.xml

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,13 @@ jobs:
4040
- name: Set Version
4141
run: xmlstarlet ed --inplace -i '/project/qibuild' -t attr -n version -v `git describe --tags` qiproject.xml
4242

43+
# Outputs the package as a .zip in ./package/
44+
# KLUDGE: we use --standalone to include all the dependencies in it,
45+
# otherwise qibuild does not know where to find them
46+
# when libqi is used in another project.
4347
- name: Build QiToolchain Package # Outputs the package as a .zip in ./package/
44-
run: qibuild package -c qisdk --release -DQI_WITH_TESTS=OFF -DCMAKE_CXX_FLAGS=-pthread
48+
run: qibuild package --standalone -c qisdk --release -DQI_WITH_TESTS=OFF -DCMAKE_CXX_FLAGS=-pthread
49+
4550

4651
- name: Release Package
4752
uses: "marvinpinto/action-automatic-releases@latest"

0 commit comments

Comments
 (0)