build: Update release version to v1.5.3 #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate source release tarball | |
run-name: Generating source release tarball | |
on: | |
push: | |
tags: # vX.Y.Z | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
workflow_dispatch: | |
jobs: | |
publish_tarball: | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: | # Jammy versions of Meson and libcamera are too old | |
pip3 install --user meson | |
sudo apt-get update | |
sudo apt-get install -y ninja-build pkgconf libboost-program-options-dev libcamera-dev libexif-dev libjpeg-dev libpng-dev libtiff-dev | |
sudo cp /usr/lib/x86_64-linux-gnu/pkgconfig/{,lib}camera.pc ||: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- 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 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: | | |
*.tar.xz | |
- if: failure() | |
run: cat build/meson-logs/meson-log.txt |