@@ -595,17 +595,6 @@ jobs:
595595 *-pc-windows-msvc) STRIP="" ;;
596596 esac;
597597 outputs STRIP
598- - name : Install/setup prerequisites
599- shell : bash
600- run : |
601- ## Install/setup prerequisites
602- case '${{ matrix.job.target }}' in
603- arm-unknown-linux-gnueabihf) sudo apt-get -y update ; sudo apt-get -y install gcc-arm-linux-gnueabihf ;;
604- aarch64-unknown-linux-gnu) sudo apt-get -y update ; sudo apt-get -y install gcc-aarch64-linux-gnu ;;
605- esac
606- case '${{ matrix.job.os }}' in
607- macos-latest) brew install coreutils ;; # needed for testing
608- esac
609598 - name : Create all needed build/work directories
610599 shell : bash
611600 run : |
@@ -624,6 +613,13 @@ jobs:
624613 case '${{ matrix.job.os }}' in
625614 macos-latest) brew install coreutils ;; # needed for testing
626615 esac
616+ case '${{ matrix.job.os }}' in
617+ *linux*)
618+ sudo sed -i 's/:,/:runner name,/' /etc/passwd # add a full name each account with a gecos field but no full name
619+ FAKE_UTMP='[7] [999999] [tty2] [runner] [tty2] [] [0.0.0.0] [2022-02-22T22:22:22,222222+00:00]'
620+ (utmpdump /var/run/utmp ; echo $FAKE_UTMP) | sudo utmpdump -r -o /var/run/utmp # create a fake login entry for the GH runner
621+ ;; # helps pinky tests
622+ esac
627623 - name : rust toolchain ~ install
628624 uses : actions-rs/toolchain@v1
629625 # env:
@@ -894,6 +890,13 @@ jobs:
894890 case '${{ matrix.job.os }}' in
895891 macos-latest) brew install coreutils ;; # needed for testing
896892 esac
893+ case '${{ matrix.job.os }}' in
894+ *linux*)
895+ sudo sed -i 's/:,/:runner name,/' /etc/passwd # add a full name each account with a gecos field but no full name
896+ FAKE_UTMP='[7] [999999] [tty2] [runner] [tty2] [] [0.0.0.0] [2022-02-22T22:22:22,222222+00:00]'
897+ (utmpdump /var/run/utmp ; echo $FAKE_UTMP) | sudo utmpdump -r -o /var/run/utmp # create a fake login entry for the GH runner
898+ ;; # helps pinky tests
899+ esac
897900 - name : rust toolchain ~ install
898901 uses : actions-rs/toolchain@v1
899902 with :
0 commit comments