Skip to content

.github/workflows/build_linux.yml #1

.github/workflows/build_linux.yml

.github/workflows/build_linux.yml #1

Workflow file for this run

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: Build linux amd64
run: make build_linux
- name: Upload Release Asset
run: |
gh release upload ${{github.event.release.tag_name}} ./dist/Chapar_linux_amd64.tar.xz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash