Build Linux #3
Workflow file for this run
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 Linux | |
| on: | |
| release: | |
| types: [published] | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| include: | |
| - arch: amd64 | |
| runner: ubuntu-24.04 | |
| - arch: arm64 | |
| runner: ubuntu-24.04-arm | |
| runs-on: ${{ matrix.runner }} | |
| steps: | |
| - name: Update dependencies | |
| run: sudo apt-get update | |
| - name: Install dependencies | |
| run: | | |
| sudo apt install gcc pkg-config \ | |
| libwayland-dev \ | |
| libx11-dev \ | |
| libx11-xcb-dev \ | |
| libxkbcommon-x11-dev \ | |
| libgles2-mesa-dev \ | |
| libegl1-mesa-dev \ | |
| libffi-dev \ | |
| libxcursor-dev \ | |
| libvulkan-dev \ | |
| libappindicator3-dev | |
| - name: Checkout repo | |
| uses: actions/checkout@v6 | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: 1.25.0 | |
| - name: Install nfpm | |
| run: go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest | |
| - name: Update Version in debrief.desktop | |
| run: | | |
| VERSION=${{ github.event.release.tag_name }} | |
| sed -i "s/^Version=.*/Version=${VERSION:1}/" assets/desktop-assets/debrief.desktop | |
| - name: Build linux ${{ matrix.arch }} tarball | |
| run: make build_linux LINUX_ARCH=${{ matrix.arch }} | |
| - name: Build deb package | |
| run: make build_deb LINUX_ARCH=${{ matrix.arch }} | |
| - name: Build rpm package | |
| run: make build_rpm LINUX_ARCH=${{ matrix.arch }} | |
| - name: Build Arch Linux package | |
| run: make build_archlinux LINUX_ARCH=${{ matrix.arch }} | |
| - name: Upload Release Assets | |
| run: | | |
| gh release upload ${{ github.event.release.tag_name }} \ | |
| ./dist/debrief-${{ github.ref_name }}-${{ matrix.arch }}.tar.xz \ | |
| ./dist/debrief-${{ github.ref_name }}-${{ matrix.arch }}.deb \ | |
| ./dist/debrief-${{ github.ref_name }}-${{ matrix.arch }}.rpm \ | |
| ./dist/debrief-${{ github.ref_name }}-${{ matrix.arch }}.pkg.tar.zst | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| shell: bash |