-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add preview-build GH actions workflow
- Loading branch information
1 parent
542d61f
commit 83f791f
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
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
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/* |