Update to g24p0-8 PR #1 #2
This file contains hidden or 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: Build and Release Debian Package | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| build_and_release: | |
| name: Build and Release Debian Package | |
| runs-on: ubuntu-22.04-arm | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Fix Git Permissions | |
| run: | | |
| mkdir -p ~/.config/git | |
| chmod -R 700 ~/.config | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y software-properties-common | |
| sudo add-apt-repository -y ppa:ubuntu-support-team/meson | |
| sudo apt-get update | |
| sudo apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| debhelper \ | |
| devscripts \ | |
| meson \ | |
| pkg-config \ | |
| libstdc++6 \ | |
| libgbm-dev \ | |
| libdrm-dev \ | |
| libx11-6 \ | |
| libx11-dev \ | |
| libx11-xcb1 \ | |
| libx11-xcb-dev \ | |
| libxcb-dri2-0 \ | |
| libxcb-dri2-0-dev \ | |
| libxcb-dri3-dev \ | |
| libxcb-present-dev \ | |
| libxcb-xfixes0-dev \ | |
| libxdamage1 \ | |
| libxdamage-dev \ | |
| libxext6 \ | |
| libxext-dev \ | |
| libxfixes3 \ | |
| libxfixes-dev \ | |
| libwayland-client0 \ | |
| libwayland-dev | |
| sudo apt-get clean autoclean --yes | |
| sudo apt-get autoremove --yes | |
| sudo rm -rf /var/cache/apt/archives* /var/lib/apt/lists/* | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Build Debian package | |
| run: | | |
| debuild -us -uc -b && cp -a ../*.deb ./ | |
| - name: Get version | |
| id: get_version | |
| run: | | |
| echo "version=$(dpkg-parsechangelog --show-field Version)" >> $GITHUB_OUTPUT | |
| - name: Get commit hash | |
| id: get_commit_hash | |
| uses: prompt/actions-commit-hash@v3 | |
| - name: Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| name: v${{ steps.get_version.outputs.version }}-${{ steps.get_commit_hash.outputs.short }} | |
| tag_name: v${{ steps.get_version.outputs.version }}-${{ steps.get_commit_hash.outputs.short }} | |
| generate_release_notes: true | |
| files: | | |
| ./*.deb |