Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suggestion: import multiple "repos" files #41

Open
christian-rauch opened this issue Feb 9, 2024 · 4 comments
Open

suggestion: import multiple "repos" files #41

christian-rauch opened this issue Feb 9, 2024 · 4 comments

Comments

@christian-rauch
Copy link
Contributor

The input REPOS_FILE currently only accepts a single "repos" file. It would be convenient if this could be a list of files that would be merged before importing the packages.

An application for this is merging different package sets (A and B) where one (A) is fixed and another one (B) has to be built with different branches (B.1, B.2). Currently, this can only be done by creating two separate "repos" files ({A+B}.1, {A+B}.2) with duplicated entries from A.

@jspricke
Copy link
Owner

jspricke commented Feb 9, 2024

You could build A in one Action and B in an other with the apt repo of A added.

@christian-rauch
Copy link
Contributor Author

Due to GitHub size restrictions for individual files, we are not using the repo. Is there a way to cache already built Debian packages? I.e. as you suggest, first run the build on a repos file for A, cache the resulting packages (without pushing them to a repo) and then run on repos files B.1 and B.2 by reusing the packages from A without building them again.

@jspricke
Copy link
Owner

you can use any http://, file:// or other apt source see: https://manpages.debian.org/bookworm/apt/sources.list.5.en.html#URI_SPECIFICATION

@v4hn
Copy link
Contributor

v4hn commented Sep 20, 2024

Adding to this (as I just found the issue), maybe have a look at what I set up in ros-o-builder, where all debs are cached between jobs.

Recently I also looked at splitting required and output debs (in ros-o-builder-experimental and my action fork) for proper dependencies, but that's not in use yet.

For me the main challenge becomes that github allows "only" for 10GB of caches in total and intermediate caches will add up quickly. Eventually, caches are deleted by order of last access time, so ccache caches and deb caches can push each other out unexpectedly.

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

No branches or pull requests

3 participants