WDCommunity / wdpksrc

Cross compilation framework to create native packages for the Western Digital My Cloud
BSD 3-Clause "New" or "Revised" License
218 stars 54 forks source link

OS5 migration + github actions #69

Closed stefaang closed 3 years ago

stefaang commented 3 years ago

As OS5 is public now, it's a good time to migrate.

This PR also includes a PoC to build packages with github actions.

JediNite commented 3 years ago

@stefaang,

Try this code snippet perhaps : pkgs=$(git log -1 --name-only | grep ^wdpk | cut -d/ -f2 | uniq || error=true)

Also would you need a loop in "make_apkg" section to loop through the list of packages to update ?

Cheers,

JediNite

stefaang commented 3 years ago

Try this code snippet perhaps : pkgs=$(git log -1 --name-only | grep ^wdpk | cut -d/ -f2 | uniq || error=true)

I believe the problem is that it's not a valid git repo due to the mounts.. which is why I'm trying it via the diff file now. I'm running act locally, but it seems to behave a bit differently.

Also would you need a loop in "make_apkg" section to loop through the list of packages to update ?

Myeah I think indeed it should become multiple packages eventually. But there's challenges with multi line variables in these GH actions, so I'm keeping that for later.

stefaang commented 3 years ago

Meh... that act repo lacks a lot of features, especially as I can't run the latest version via brew yet on Big Sur. The git repo in the actions also only contains a single commit with the complete repo, so history/logs are useless. Anyway... I'm glad it's finally working here :)

stefaang commented 3 years ago

Now I just want to add an upload step when pushing a tag.