Skip to content

Commit

Permalink
Add documentation for the Github workflow, and a sample file to build…
Browse files Browse the repository at this point in the history
… using ACT.
  • Loading branch information
mherger committed Jan 24, 2024
1 parent 772329e commit 385d420
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 4 deletions.
9 changes: 9 additions & 0 deletions CPAN/Docker/act.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"action": "workflow_dispatch",
"inputs": {
"flavour": "debian",
"tag": "bullseye",
"platform": "arm64",
"module": "Audio::Scan"
}
}
30 changes: 26 additions & 4 deletions CPAN/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,29 @@
Building Perl binaries for Logitech Media Server
============================
(aka. SlimServer, SqueezeboxServer, SliMP3...)
--------

## Build using the Github Workflow `buildCPAN`

There's a Github Workflow `buildCPAN.yaml` to build on various platforms using a few parameters. It's easiest to run it directly on Github. Alas, Github Actions only support x86_64 for Linux so far, no ARM. But the same workflow file can be run locall using [ACT](https://nektosact.com/installation/index.html). Run on a Mac with Apple Silicon this allows you to build for the ARM platform, too.

After you've set up ACT following the instructions from above link you can set up a configuration file, like eg. [`CPAN/Docker/act.json`]:

```json
{
"action": "workflow_dispatch",
"inputs": {
"flavour": "debian",
"tag": "bullseye",
"platform": "arm64",
"module": "Audio::Scan"
}
}
```

Where:
* `flavour`: currently `debian` or `fedora` are supported
* `tag`: the Docker tag if you wish to use a specific version of one of those distributions. See Docker Hub for available tags for [Debian](https://hub.docker.com/_/debian) or [Fedora](https://hub.docker.com/_/fedora). The workflow would fall back to `testing` or `latest`, respectively.

## Building on your machine

In most cases it should be good enough to just run `./buildme.sh` from this folder.

Expand Down Expand Up @@ -31,6 +53,6 @@ On FreeBSD, FreeNAS, etc. make sure you have the following packages/ports instal
* net/rsync
* lang/perl5 (or perl5.22 or perl5.26)

In addition, you should make sure that your Perl was compiled with the same family of compiler
(gcc or clang) as you are attempting to use with buildme.sh. Compiler mismatches can cause
In addition, you should make sure that your Perl was compiled with the same family of compiler
(gcc or clang) as you are attempting to use with buildme.sh. Compiler mismatches can cause
signficant problems.

0 comments on commit 385d420

Please sign in to comment.