From 11aa7bebe81f487879e1731c4577a45cefe6cb70 Mon Sep 17 00:00:00 2001 From: Yongjoo Ahn Date: Fri, 11 Oct 2024 19:31:54 +0900 Subject: [PATCH] [action] Fix yocto build workflow - Add an option `nobranch=1` to prevent occasional fetch error. - Remove unnecessary disk space acquisition step. Signed-off-by: Yongjoo Ahn --- .github/workflows/yocto.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/yocto.yml b/.github/workflows/yocto.yml index 5ec6922a2..a9e2a37bf 100644 --- a/.github/workflows/yocto.yml +++ b/.github/workflows/yocto.yml @@ -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: | @@ -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::"