Skip to content

Commit 40b5067

Browse files
committed
Use sudo for the artifact layout copy (docker step leaves root-owned files)
1 parent a2957ee commit 40b5067

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/android-assets.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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 +

0 commit comments

Comments
 (0)