Giter Site home page Giter Site logo

Comments (7)

awalsh128 avatar awalsh128 commented on August 11, 2024 5

@fambon I started work on this and was curious what you thought about this. I could support just PPA or other repos in general; it is just more verbose.

For example:

    apt-add-repository 'deb http://myserver/path/to/repo stable myrepo'
    apt-add-repository 'http://myserver/path/to/repo myrepo'
    apt-add-repository 'https://packages.medibuntu.org free non-free'
    apt-add-repository http://extras.ubuntu.com/ubuntu
    apt-add-repository ppa:user/repository
    apt-add-repository ppa:user/distro/repository
    apt-add-repository multiverse

Would it make sense to support more than just PPA?

from cache-apt-pkgs-action.

awalsh128 avatar awalsh128 commented on August 11, 2024 2

This is an interesting case. It would be relatively simple to add and may be more intuitive. WDYT?

from cache-apt-pkgs-action.

fambon avatar fambon commented on August 11, 2024 1

Eventually, I added a step to my workflow, just before the apt-cache action :-)
that step simply adds the ppa, and all goes fine:
installed package is that of the ppa, and cached.

    steps:
      - uses: actions/checkout@v1
      - run:|
          sudo add-apt-repository ppa:saiarcot895/chromium-beta
          sudo apt-get update
      - uses: awalsh128/cache-apt-pkgs-action@latest
        with:
          packages: chromium-chromedriver postgresql postgresql-contrib
          version: 1.0

      - run: make tests
        [...]

from cache-apt-pkgs-action.

fambon avatar fambon commented on August 11, 2024

Well, if the action provides for the extra parameter/commands, sure, it's easier on the user's side :-)

I closed the issue because I though that adding the extra step in the workflow was the Β«expectedΒ» way to do it, considering it's pretty simple to do, once you figure it out, but we can re-open if you think the feature is worth adding.

from cache-apt-pkgs-action.

fambon avatar fambon commented on August 11, 2024

seems to call for the general form πŸ‘

from cache-apt-pkgs-action.

mstruebing avatar mstruebing commented on August 11, 2024

Do you need support finishing this feature? Would love to use this πŸ‘

from cache-apt-pkgs-action.

awalsh128 avatar awalsh128 commented on August 11, 2024

Support is always welcome. πŸ’―

Happy to look at any PRs. Make sure to PR from dev branch and add a corresponding test in https://github.com/awalsh128/cache-apt-pkgs-action-ci. We can then add the staging and prod tests as we graduate through those branches.

Master is broken right now too, so that will need to get fixed before we pull from staging.

from cache-apt-pkgs-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.