Build Perl CPAN modules for Logitech Media Server #10
Workflow file for this run
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
name: Build Perl CPAN modules for Logitech Media Server | |
on: | |
workflow_dispatch: | |
inputs: | |
flavour: | |
description: The Linux flavour we're building for. Currently 'debian' or 'fedora' only. | |
type: choice | |
options: | |
- debian | |
- fedora | |
required: true | |
default: debian | |
platform: | |
description: The hardware platform for which to build. | |
type: choice | |
options: | |
- amd64 | |
- aarch64 | |
- armv7 | |
required: true | |
default: amd64 | |
module: | |
description: A specific module you'd like to build. Defaults to all modules if none is specified. | |
type: string | |
required: false | |
jobs: | |
linux: | |
name: Build Perl CPAN modules | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Build Script | |
shell: bash | |
run: | | |
cd CPAN | |
docker build --rm -f "Docker/Dockerfile.${{ inputs.flavour }}" -t slimservervendor:${{ inputs.flavour }} . | |
docker run --rm --platform=linux/${{ inputs.platform }} -v `pwd`:/cpan slimservervendor:${{ inputs.flavour }} ./buildme.sh ${{ inputs.module }} | |
# TODO - run LMS smoke test | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: CPAN-${{ inputs.flavour }} | |
path: CPAN/build/arch/5.*/*/auto/ |