Skip to content

CI: multi-arch-test-build: add APK package testing#39

Merged
Ansuel merged 3 commits intoopenwrt:mainfrom
robimarko:packages-multiarch-apk-restart
May 5, 2025
Merged

CI: multi-arch-test-build: add APK package testing#39
Ansuel merged 3 commits intoopenwrt:mainfrom
robimarko:packages-multiarch-apk-restart

Conversation

@robimarko
Copy link
Copy Markdown
Contributor

@robimarko robimarko commented May 5, 2025

Currently, only IPK package testing is supported in multi-arch-test-build, but since we are now defaulting to APK we need to support APK package testing as well.

So, refactor both the workflow and entrypoint script to support both OPKG and APK packages.

Do note that there is no APK signing support yet in this PR.

Fixes: #35

@Ansuel
Copy link
Copy Markdown
Member

Ansuel commented May 5, 2025

My only complaint about this is the allow untrusted for apk. I would really love to keep verification enabled.

@robimarko
Copy link
Copy Markdown
Contributor Author

My only complaint about this is the allow untrusted for apk. I would really love to keep verification enabled.

I just wanted to get this working, no idea what APK requires as far as certificates go?

@ynezz
Copy link
Copy Markdown
Member

ynezz commented May 5, 2025

no idea what APK requires as far as certificates go?

Its similar to opkg, public key BUILD_KEY_APK_PUB=$(TOPDIR)/public-key.pem should be copied into /etc/apk/keys/packages-ci.pem

@robimarko
Copy link
Copy Markdown
Contributor Author

no idea what APK requires as far as certificates go?

Its similar to opkg, public key BUILD_KEY_APK_PUB=$(TOPDIR)/public-key.pem should be copied into /etc/apk/keys/packages-ci.pem

Is APK support in openwrt/gh-action-sdk action required?

@Ansuel
Copy link
Copy Markdown
Member

Ansuel commented May 5, 2025 via email

@robimarko
Copy link
Copy Markdown
Contributor Author

Ok, I see people have submitted PRs to openwrt/gh-action-sdk.

Can I add APK signing later as to not make this PR too big?

robimarko added 3 commits May 5, 2025 19:53
…anager to container

Currently, "Check if any packages were built" step only looks for .ipk
packages to see if any were built.

So, lets extend it to first check for .apk, then .ipk to support both main
and 24.10, while at it set what is the package manager being used.

We need to know what package manager is being used since 24.10 uses OPKG
while main uses APK.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Link: openwrt#39
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
As the start for APK support, lets refactor the entrypoint.sh script to
start checking the PKG_MANAGER variable for OPKG.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Link: openwrt#39
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Support testing with APK packages as well as main branch uses APK by
default and future stable releases will do so as well.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Link: openwrt#39
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
@Ansuel Ansuel force-pushed the packages-multiarch-apk-restart branch from 51d00a9 to 798897a Compare May 5, 2025 17:53
@Ansuel Ansuel merged commit 798897a into openwrt:main May 5, 2025
@robimarko robimarko deleted the packages-multiarch-apk-restart branch May 5, 2025 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI/CD for testing packages is looking for IPK packages

3 participants