1
0

Revert "ci: run from root"

This reverts commit 3dd9071057.
This commit is contained in:
dump_stack() 2023-05-16 12:48:08 +00:00
parent 3dd9071057
commit 08dcfd52a3
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -75,6 +75,7 @@ jobs:
ssh root@$IP "curl -L https://nixos.org/nix/install | sh -s -- --daemon" ssh root@$IP "curl -L https://nixos.org/nix/install | sh -s -- --daemon"
ssh root@$IP "echo 'experimental-features = nix-command flakes' >> /etc/nix/nix.conf" ssh root@$IP "echo 'experimental-features = nix-command flakes' >> /etc/nix/nix.conf"
ssh root@$IP "useradd user && cp -r /root/.ssh /home/user/ && chown -R user:user /home/user"
echo 'name = "out-of-tree script"' >> .out-of-tree.toml echo 'name = "out-of-tree script"' >> .out-of-tree.toml
echo 'type = "script"' >> .out-of-tree.toml echo 'type = "script"' >> .out-of-tree.toml
@ -85,13 +86,13 @@ jobs:
echo 'release_mask = ".*"' >> .out-of-tree.toml echo 'release_mask = ".*"' >> .out-of-tree.toml
echo -e '#!/bin/sh\necho ok' >> script.sh echo -e '#!/bin/sh\necho ok' >> script.sh
scp .out-of-tree.toml script.sh root@$IP: scp .out-of-tree.toml script.sh user@$IP:
ssh root@$IP "source /etc/profile.d/nix.sh; nix run github:out-of-tree/out-of-tree/$GITHUB_SHA -- --log-level=debug kernel list-remote --distro=${{ matrix.os.distro }} --ver=${{ matrix.os.release }}" ssh user@$IP "source /etc/profile.d/nix.sh; nix run github:out-of-tree/out-of-tree/$GITHUB_SHA -- --log-level=debug kernel list-remote --distro=${{ matrix.os.distro }} --ver=${{ matrix.os.release }}"
ssh root@$IP "source /etc/profile.d/nix.sh; nix run github:out-of-tree/out-of-tree/$GITHUB_SHA -- --log-level=debug kernel autogen --max=1 --shuffle" ssh user@$IP "source /etc/profile.d/nix.sh; nix run github:out-of-tree/out-of-tree/$GITHUB_SHA -- --log-level=debug kernel autogen --max=1 --shuffle"
ssh root@$IP "source /etc/profile.d/nix.sh; nix run github:out-of-tree/out-of-tree/$GITHUB_SHA -- --log-level=debug pew --qemu-timeout=10m" ssh user@$IP "source /etc/profile.d/nix.sh; nix run github:out-of-tree/out-of-tree/$GITHUB_SHA -- --log-level=debug pew --qemu-timeout=10m"
scp -r root@$IP:.out-of-tree/logs . scp -r user@$IP:.out-of-tree/logs .
- name: Archive logs - name: Archive logs
if: always() if: always()