-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Github workflow to build CPAN binaries
- Loading branch information
1 parent
b4d1b61
commit a538c33
Showing
6 changed files
with
59 additions
and
7 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,26 @@ | ||
name: Build Perl CPAN modules for Logitech Media Server | ||
|
||
inputs: | ||
flavour: | ||
description: The Linux flavour we're building for. Currently 'debian' or 'fedora' only. | ||
default: 'debian' | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: Run Build Script | ||
shell: bash | ||
run: | | ||
cd CPAN | ||
docker build --rm -f "Docker/Dockerfile.${{ inputs.flavour }}" -t slimservervendor:${{ inputs.flavour }} . | ||
# TODO - make platform configurable | ||
docker run --rm --platform=linux/amd64 -v `pwd`:/cpan slimservervendor:${{ inputs.flavour }} ./buildme.sh | ||
# TODO - run LMS smoke test | ||
|
||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: CPAN-${{ inputs.flavour }} | ||
path: CPAN/build/arch/5.*/*/auto/ |
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,14 @@ | ||
name: 'Build Perl CPAN modules for Debian' | ||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
linux: | ||
name: Build Perl CPAN modules | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: ./.github/actions/buildCPAN | ||
with: | ||
flavour: debian |
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,14 @@ | ||
name: 'Build Perl CPAN modules for Fedora' | ||
on: [workflow_dispatch] | ||
|
||
jobs: | ||
linux: | ||
name: Build Perl CPAN modules | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: ./.github/actions/buildCPAN | ||
with: | ||
flavour: fedora |
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
# adjust base image to whatever version you want to build with | ||
FROM --platform=linux/amd64 debian:unstable | ||
FROM --platform=linux/amd64 debian:testing | ||
|
||
RUN apt-get update && apt-get install -y nasm make gcc g++ rsync patch libc-bin zlib1g-dev libgd-dev unzip perl bzip2 | ||
|
||
RUN mkdir /cpan | ||
WORKDIR /cpan | ||
|
||
CMD ["/bin/bash"] |
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
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