run-on-arch-action icon indicating copy to clipboard operation
run-on-arch-action copied to clipboard

multiple arch multiple run

Open surfzoid opened this issue 2 years ago • 2 comments

Hi i'm using your action here : https://github.com/surfzoid/test/actions/runs/3133635865/jobs/5087228929

My idea is to build aarch64 RPM and DEB, but i'm confuse on how select the case distro: ubuntu_latest a deb os based and : distro: fedora_latest a RPM os based.

i cannot ask for dh-helper and rpmbuild for both.

Can you please clarify?

surfzoid avatar Sep 27 '22 17:09 surfzoid

The install action at https://github.com/uraimo/run-on-arch-action#advanced-example does shows how to do it:

install: |
            case "${{ matrix.distro }}" in
              ubuntu*|jessie|stretch|buster|bullseye)
                apt-get update -q -y
                apt-get install -q -y git
                ;;
              fedora*)
                dnf -y update
                dnf -y install git which
                ;;
              alpine*)
                apk update
                apk add git
                ;;
            esac

martin-g avatar Oct 25 '22 12:10 martin-g

yes install use select case so i just guess, run must do the same. any way, i finally used my raspeberry as selfhosted, really easy and fast.

surfzoid avatar Oct 25 '22 13:10 surfzoid