Skip to content

Fix: don't clone with .git directory ending. #31

Fix: don't clone with .git directory ending.

Fix: don't clone with .git directory ending. #31

Workflow file for this run

name: Build Yocto Image
on:
push:
pull_request:
schedule:
# run every Tuesday at 3 AM UTC
- cron: "0 3 * * 2"
workflow_dispatch:
repository_dispatch:
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Checkout pika-spark/lmp-manifest
uses: actions/checkout@v4
with:
repository: pika-spark/lmp-manifest
path: 'lmp-manifest'
ref: pika-spark
- name: Create a new user
run: |
sudo useradd -m myuser --uid 1000 --gid 1000
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
- name: Check out this repository containing build script
uses: actions/checkout@v4
- name: Build Yocto image
run: |
whoami
id -u
id -g
docker run --rm \
-v ${{ github.workspace }}:/workdir \
-u ${{ env.UID }}:${{ env.GID }} \
yocto-build \
/bin/bash -c "cd /workdir && bash portenta-x8_build.sh"