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

Support install scripts located in checked-out repository #54

Open marceltaeumel opened 3 years ago

marceltaeumel commented 3 years ago

During the action's install: phase, one cannot access the checked-out files. For modularity reasons, I manage preparation scripts for various Linux environments in the repository. Therefore, I tried to not spoil the .yml workflow spec with extra "apt install ..." stuff.

First, I noticed that the current working directory does not point to the checkout:

install: ./scripts/ci/actions_prepare_linux_arm.sh

/root/run-on-arch-install.sh: line 7: ./scripts/ci/actions_prepare_linux_arm.sh: No such file or directory

After realizing that I seem to be in the root path, I tried to provide the full path the the install script:

install: ./home/runner/work/opensmalltalk-vm/opensmalltalk-vm/scripts/ci/actions_prepare_linux_arm.sh

/root/run-on-arch-install.sh: line 4: ./home/runner/work/opensmalltalk-vm/opensmalltalk-vm/scripts/ci/actions_prepare_linux_arm.sh: No such file or directory

This issue might be related to issue #39 . This might be a "nice-to-have" feature. 😄