~earboxer/musicdir-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] sourcehut: Add build script

Details
Message ID
<20220509005424.16113-1-zachdecook@librem.one>
DKIM signature
missing
Download raw message
Patch: +16 -0
Always check sanitycheck, build last package[s] updated
(and save the artifacts)
---
See this successful at https://builds.sr.ht/~earboxer/job/754137

 .build.yml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 .build.yml

diff --git a/.build.yml b/.build.yml
new file mode 100644
index 0000000..2f0af14
--- /dev/null
+++ b/.build.yml
@@ -0,0 +1,16 @@
image: alpine/edge
sources:
  - https://git.sr.ht/~earboxer/mdaports
tasks:
  - sanitycheck: |
      find mdaports -name '*APKBUILD' | xargs -I{} sh -c "APKBUILD='{}' abuild sanitycheck"
  - build_setup: |
      abuild-keygen -a -n
  - build_changed: |
      cd mdaports
      git diff --name-only HEAD HEAD~1 | xargs -I{} dirname '{}' | sort -u | grep -v '^.$' | xargs -I{} find '{}' -name '*APKBUILD' | xargs -I{} sh -c "APKBUILD='{}' abuild"
  - tar_packages: |
      mkdir -p packages
      tar -cf packages.tar packages
artifacts:
  - packages.tar
-- 
2.36.0
Details
Message ID
<CJUTTCKW5HYZ.L1MVORFEA0NC@zach-macbookpro121>
In-Reply-To
<20220509005424.16113-1-zachdecook@librem.one> (view parent)
DKIM signature
missing
Download raw message
> +image: alpine/edge
This image is an x86_64 image, and so it spits out the artifacts in
/packages/artists/x86_64

Ideally we'd want the architecture to be independent,
so a program like mrtest could automatically grab the right packages.

abuild has an environment variable we can tweak for noarch package placement.
Does apk have a directory that it searches for noarch packages?

(maybe "all"? -- https://dl-cdn.alpinelinux.org/alpine/edge/community/all/)

Alternatively, we could create the symlinks for supported systems,
so a program consuming the artifacts would know what is supported.
Reply to thread Export thread (mbox)