Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ name: Build Binaries

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
workflow_call:
inputs:
Expand Down Expand Up @@ -36,6 +32,13 @@ jobs:
with:
go-version: '1.23.0'

- name: Install ffmpeg and yt-dlp
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
sudo curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
sudo chmod a+rx /usr/local/bin/yt-dlp

- name: Run tests
run: |
go test -v ./...
Expand All @@ -44,6 +47,7 @@ jobs:
name: Build for ${{ matrix.goos }}-${{ matrix.goarch }}
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main' || github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch'
permissions:
contents: read
strategy:
Expand Down
Loading
Loading