-
-
Notifications
You must be signed in to change notification settings - Fork 67
33 lines (26 loc) · 900 Bytes
/
build-linux.yml
File metadata and controls
33 lines (26 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build for Linux
on: [push]
jobs:
build:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v6
- name: Set env
run: if grep -Fxq "devel" version.txt;then echo "GO2TV_VERSION=$(cat version.txt)";else echo "GO2TV_VERSION=v$(cat version.txt)";fi >> $GITHUB_ENV
- uses: actions/setup-go@v6
with:
go-version: 'stable'
- name: Get dependencies
run: sudo apt update && sudo apt install xorg-dev
- name: Package (Linux)
run: GOOS=linux GOARCH=amd64 go build -tags migrated_fynedo -ldflags "-s -w -X main.version=$(echo ${{ env.GO2TV_VERSION }} | sed 's/^v//')" -o go2tv cmd/go2tv/go2tv.go
- uses: actions/upload-artifact@v6
with:
name: go2tv_${{ env.GO2TV_VERSION }}_linux_amd64
path: |
LICENSE
README.md
go2tv
retention-days: 2