Skip to content

Commit

Permalink
ci: add preview-build GH actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bastimeyer committed Feb 6, 2025
1 parent 542d61f commit 83f791f
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/preview-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Preview build

on:
workflow_dispatch:
inputs:
ref:
description: A git ref on the Streamlink git repo
default: master
required: true
type: string

jobs:
build:
name: "${{ inputs.ref }} (${{ matrix.build }})"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- build: installer
- build: portable
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
./install-build-dependencies.sh
- name: Build
run: |
"./build-${{ matrix.build }}.sh" --gitref "${{ inputs.ref }}" --bundle ffmpeg
- name: Get file name
id: vars
run: |
echo "file_name=$(cd dist && ls *.*)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.vars.outputs.file_name }}
path: dist/*

0 comments on commit 83f791f

Please sign in to comment.