Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Aug 7, 2024
1 parent d4415e8 commit e4d4d8f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-yocto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ jobs:
path: 'lmp-manifest'
ref: pika-spark

- name: Create a new user
run: |
sudo useradd -m myuser
echo "myuser:password" | sudo chpasswd
sudo usermod -aG sudo myuser
- name: Get UID and GID of the new user and store in environment
id: ids
run: |
echo "UID=$(id -u myuser)" >> $GITHUB_ENV
echo "GID=$(id -g myuser)" >> $GITHUB_ENV
- name: Build Docker image
run: |
docker build -t yocto-build ./lmp-manifest
Expand All @@ -41,6 +53,6 @@ jobs:
id -g
docker run --rm \
-v ${{ github.workspace }}:/workdir \
-u $(id -u):$(id -g) \
-u ${{ env.UID }}:${{ env.GID }} \
yocto-build \
/bin/bash -c "cd /workdir && bash portenta-x8_build.sh"

0 comments on commit e4d4d8f

Please sign in to comment.