File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,8 +102,12 @@ jobs:
102102 # (their `cp ci-assets/assets/rootfs-*.tar` finds nothing). Keep the artifact's flat
103103 # assets/+jniLibs layout both consumer workflows already expect.
104104 - name : Restore flat artifact layout (rootfs next to server bundle)
105+ # sudo: the docker build step above runs as root, so the staged dirs/files are
106+ # root-owned and the runner user cannot write next to them. chown afterwards so
107+ # upload-artifact (runner user) reads everything without surprises.
105108 run : |
106- cp surfaces/android/rootfs/src/main/assets/rootfs-*.tar surfaces/android/app/src/main/assets/
109+ sudo cp surfaces/android/rootfs/src/main/assets/rootfs-*.tar surfaces/android/app/src/main/assets/
110+ sudo chown -R "$(id -u):$(id -g)" surfaces/android/app/src/main/assets surfaces/android/app/src/main/jniLibs
107111 ls -lh surfaces/android/app/src/main/assets/
108112
109113 # Upload BOTH the assets (rootfs + server bundle tars) and jniLibs (proot + loader +
You can’t perform that action at this time.
0 commit comments