Skip to content

Commit

Permalink
[action] Fix yocto build workflow
Browse files Browse the repository at this point in the history
- Add an option `nobranch=1` to prevent occasional fetch error.
- Remove unnecessary disk space acquisition step.

Signed-off-by: Yongjoo Ahn <[email protected]>
  • Loading branch information
anyj0527 authored and gichan-jang committed Oct 16, 2024
1 parent 69b3ec2 commit 11aa7be
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/yocto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@ jobs:
/var/cache/yocto/sstate-cache
/var/cache/yocto/persistent
key: yocto-cache-yocto-5.0.3
- name: acquire some disk space
run: |
df -h
sudo apt-get update --fix-missing \
&& sudo apt-get remove -y '^dotnet-.*' '^llvm-.*' '^mysql-server-core-.*' '^postgresql-.*' \
azure-cli google-chrome-stable google-cloud-cli firefox powershell microsoft-edge-stable mono-devel \
&& sudo apt-get purge docker-ce docker-ce-cli \
&& sudo apt-get autoremove -y \
&& sudo rm -rf /usr/share/dotnet /usr/share/swift /usr/share/miniconda /usr/local/graalvm \
/usr/local/.ghcup /usr/local/share/powershell /usr/local/share/chromium /usr/local/lib/node_modules \
/var/lib/docker /var/lib/apt/lists
df -h
- name: build
if: github.ref == 'refs/heads/main' || env.rebuild == '1'
run: |
Expand All @@ -59,7 +47,7 @@ jobs:
echo "::group::Prepare poky and meta-neural-network"
git clone git://git.yoctoproject.org/poky -b yocto-5.0.3 && cd poky
git clone https://github.com/nnstreamer/meta-neural-network -b scarthgap
echo 'SRC_URI = "git://${{ github.workspace }};protocol=file;usehead=1"' >> meta-neural-network/recipes-nnstreamer/nnstreamer/nnstreamer_%.bbappend
echo 'SRC_URI = "git://${{ github.workspace }}/;protocol=file;usehead=1;nobranch=1"' >> meta-neural-network/recipes-nnstreamer/nnstreamer/nnstreamer_%.bbappend
source oe-init-build-env
bitbake-layers add-layer ../meta-neural-network
echo "::endgroup::"
Expand Down

0 comments on commit 11aa7be

Please sign in to comment.