v0.3.1 #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: Build Linux | |
on: | |
release: | |
types: [published] | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Update dependencies | |
run: sudo apt-get update | |
- name: Install specific 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 | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.22.1 | |
- name: Update Version in chapar.desktop | |
run: | | |
VERSION=${{ github.event.release.tag_name }} | |
sed -i "s/^Version=.*/Version=${VERSION:1}/" build/desktop-assets/chapar.desktop | |
- name: Build linux amd64 | |
run: make build_linux | |
- name: Upload Release Asset | |
run: | | |
gh release upload ${{github.event.release.tag_name}} ./dist/chapar-linux-${{ github.ref_name }}-amd64.tar.xz | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
shell: bash |