Skip to content

Commit

Permalink
Update gen_orig.yml workflow
Browse files Browse the repository at this point in the history
Use Debian packaging tarball names

Update to action-gh-release v2

Generate IMX500 models tarball

Check that project and tag versions match
  • Loading branch information
XECDesign authored and naushir committed Sep 26, 2024
1 parent 650e472 commit fe7e364
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/gen_orig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,26 @@ jobs:
sudo cp /usr/lib/x86_64-linux-gnu/pkgconfig/{,lib}camera.pc ||:
- name: Check out repository code
uses: actions/checkout@v4
- name: Generate tarball
- name: Generate tarballs
run: |
PATH="${HOME}/.local/bin:${PATH}"
TARBALL="rpicam-apps-${GITHUB_REF_NAME:1}.tar.xz"
meson setup build
meson dist --no-tests --include-subprojects -C build
if ! [ -f "build/meson-dist/$TARBALL" ]; then
echo "Expected tarball not found - $TARBALL"
echo "Does 'version' in meson.build match the tag?"
exit 1
fi
mv "build/meson-dist/$TARBALL" rpicam-apps_${GITHUB_REF_NAME:1}.orig.tar.xz
./utils/download-hailo-models.sh hailo-models
XZ_OPT=-9 tar -cJf hailo-models-${GITHUB_REF_NAME:1}.tar.xz hailo-models
- name: Release tarball
uses: softprops/action-gh-release@v1
XZ_OPT=-9 tar -cJf rpicam-apps_${GITHUB_REF_NAME:1}.orig-hailo-models.tar.xz hailo-models
./utils/download-imx500-models.sh imx500-models
XZ_OPT=-9 tar -cJf rpicam-apps_${GITHUB_REF_NAME:1}.orig-imx500-models.tar.xz imx500-models
- name: Release tarballs
uses: softprops/action-gh-release@v2
with:
files: |
build/meson-dist/*.tar.xz
hailo-models-*.tar.xz
*.tar.xz
- if: failure()
run: cat build/meson-logs/meson-log.txt

0 comments on commit fe7e364

Please sign in to comment.