File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Generate source release tarball
2+ run-name : Generating source release tarball
3+ on :
4+ push :
5+ tags : # vX.Y.Z+rptYYYMMDD
6+ - ' v[0-9]+.[0-9]+.[0-9]+\+rpt[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
7+ workflow_dispatch :
8+ jobs :
9+ publish_tarball :
10+ permissions :
11+ contents : write
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Install dependencies
15+ run : | # Local cmake needs to be removed for pybind11 to be detected
16+ sudo rm -rf /usr/local/bin/cmake
17+ sudo apt-get update
18+ sudo apt-get install -y meson pkgconf cmake libgtest-dev libyaml-dev python3 python3-dev pybind11-dev python3-jinja2 python3-ply python3-yaml
19+ - name : Check out repository code
20+ uses : actions/checkout@v4
21+ with :
22+ fetch-depth : 0 # Required for 'git describe' to work
23+ - name : Generate tarball
24+ run : |
25+ meson setup build -Dpycamera=enabled
26+ meson dist --no-tests --include-subprojects -C build
27+ mv build/meson-dist/*.tar.xz "build/meson-dist/libcamera-${GITHUB_REF_NAME:1}.tar.xz"
28+ - name : Release tarball
29+ uses : softprops/action-gh-release@v1
30+ with :
31+ files : build/meson-dist/*.tar.xz
32+ - if : failure()
33+ run : cat build/meson-logs/meson-log.txt
You can’t perform that action at this time.
0 commit comments