-
Notifications
You must be signed in to change notification settings - Fork 68
48 lines (43 loc) · 1.37 KB
/
buildCPANDebian.yaml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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/