Skip to content

Commit 82e1bdd

Browse files
XECDesignnaushir
authored andcommitted
Update gen_orig.yml workflow
Use Debian packaging tarball names Update to action-gh-release v2 Generate IMX500 models tarball Check that project and tag versions match
1 parent 963e7d5 commit 82e1bdd

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/gen_orig.yml

+14-6
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,26 @@ jobs:
1919
sudo cp /usr/lib/x86_64-linux-gnu/pkgconfig/{,lib}camera.pc ||:
2020
- name: Check out repository code
2121
uses: actions/checkout@v4
22-
- name: Generate tarball
22+
- name: Generate tarballs
2323
run: |
2424
PATH="${HOME}/.local/bin:${PATH}"
25+
TARBALL="rpicam-apps-${GITHUB_REF_NAME:1}.tar.xz"
2526
meson setup build
2627
meson dist --no-tests --include-subprojects -C build
28+
if ! [ -f "build/meson-dist/$TARBALL" ]; then
29+
echo "Expected tarball not found - $TARBALL"
30+
echo "Does 'version' in meson.build match the tag?"
31+
exit 1
32+
fi
33+
mv "build/meson-dist/$TARBALL" rpicam-apps_${GITHUB_REF_NAME:1}.orig.tar.xz
2734
./utils/download-hailo-models.sh hailo-models
28-
XZ_OPT=-9 tar -cJf hailo-models-${GITHUB_REF_NAME:1}.tar.xz hailo-models
29-
- name: Release tarball
30-
uses: softprops/action-gh-release@v1
35+
XZ_OPT=-9 tar -cJf rpicam-apps_${GITHUB_REF_NAME:1}.orig-hailo-models.tar.xz hailo-models
36+
./utils/download-imx500-models.sh imx500-models
37+
XZ_OPT=-9 tar -cJf rpicam-apps_${GITHUB_REF_NAME:1}.orig-imx500-models.tar.xz imx500-models
38+
- name: Release tarballs
39+
uses: softprops/action-gh-release@v2
3140
with:
3241
files: |
33-
build/meson-dist/*.tar.xz
34-
hailo-models-*.tar.xz
42+
*.tar.xz
3543
- if: failure()
3644
run: cat build/meson-logs/meson-log.txt

0 commit comments

Comments
 (0)