uraimo / run-on-arch-action

A Github Action that executes jobs/commands on non-x86 cpu architectures (ARMv6, ARMv7, aarch64, s390x, ppc64le, riscv64) via QEMU
BSD 3-Clause "New" or "Revised" License
677 stars 149 forks source link

multiple arch multiple run #92

Open surfzoid opened 1 year ago

surfzoid commented 1 year ago

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?

martin-g commented 1 year ago

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
surfzoid commented 1 year ago

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.