From 13d0e680086dbc76258a56c61da4c74611988080 Mon Sep 17 00:00:00 2001 From: Nobuo Tsukamoto Date: Mon, 8 Apr 2024 20:54:40 +0900 Subject: [PATCH 1/9] Fix workflow target branch. --- .github/workflows/build_riscv.yml | 4 ++-- .github/workflows/build_rpi.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_riscv.yml b/.github/workflows/build_riscv.yml index f36b088..150899c 100755 --- a/.github/workflows/build_riscv.yml +++ b/.github/workflows/build_riscv.yml @@ -6,9 +6,9 @@ name: Bitbake qemuriscv on: # Triggers the workflow on push or pull request events but only for the kirkstone branch push: - branches: [ main ] + branches: [ nanbield ] pull_request: - branches: [ main ] + branches: [ nanbield ] schedule: - cron: '0 12 * * 5' diff --git a/.github/workflows/build_rpi.yml b/.github/workflows/build_rpi.yml index f4edb83..20b91b3 100755 --- a/.github/workflows/build_rpi.yml +++ b/.github/workflows/build_rpi.yml @@ -6,9 +6,9 @@ name: Bitbake raspberrypi on: # Triggers the workflow on push or pull request events but only for the kirkstone branch push: - branches: [ main ] + branches: [ nanbield ] pull_request: - branches: [ main ] + branches: [ nanbield ] schedule: - cron: '0 12 * * 5' From cc624da7e95712bbeef821f86797a1f9b159ba75 Mon Sep 17 00:00:00 2001 From: Nobuo Tsukamoto Date: Tue, 9 Apr 2024 06:59:07 +0900 Subject: [PATCH 2/9] Update build_riscv.yml --- .github/workflows/build_riscv.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_riscv.yml b/.github/workflows/build_riscv.yml index 150899c..7299d4e 100755 --- a/.github/workflows/build_riscv.yml +++ b/.github/workflows/build_riscv.yml @@ -51,7 +51,7 @@ jobs: run: | sudo chown runner /mnt git clone -b ${TARGET_VERSION} git://git.yoctoproject.org/poky.git - git clone -b ${TARGET_VERSION} git://git.yoctoproject.org/meta-raspberrypi + git clone -b ${TARGET_VERSION} https://github.com/riscv/meta-riscv.git git clone -b ${TARGET_VERSION} git://git.openembedded.org/meta-openembedded working-directory: /mnt @@ -62,16 +62,15 @@ jobs: bitbake-layers add-layer ../meta-openembedded/meta-oe/ bitbake-layers add-layer ../meta-openembedded/meta-python/ bitbake-layers add-layer /home/runner/work/meta-tensorflow-lite/meta-tensorflow-lite/ - bitbake-layers add-layer ../meta-raspberrypi/ + bitbake-layers add-layer ../meta-riscv/ cat < conf/auto.conf FORTRAN:forcevariable = ",fortran" PREFERRED_VERSION_python3-tensorflow-lite="${{ matrix.tensorflow_version }}" PREFERRED_VERSION_libtensorflow-lite="${{ matrix.tensorflow_version }}" - LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch" EOF cat conf/auto.conf MACHINE=${{matrix.target_machine}} bitbake python3-tensorflow-lite libtensorflow-lite \ libtensorflow-lite-c python3-tensorflow-lite-example tensorflow-lite-label-image \ tensorflow-lite-minimal tensorflow-lite-benchmark libedgetpu-std df -h - working-directory: /mnt \ No newline at end of file + working-directory: /mnt From 33ce01bdf949bf2620ac253d657ad308f2270aa9 Mon Sep 17 00:00:00 2001 From: Nobuo Tsukamoto Date: Wed, 10 Apr 2024 06:11:21 +0900 Subject: [PATCH 3/9] Update build_riscv.yml --- .github/workflows/build_riscv.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_riscv.yml b/.github/workflows/build_riscv.yml index 7299d4e..31abce6 100755 --- a/.github/workflows/build_riscv.yml +++ b/.github/workflows/build_riscv.yml @@ -51,7 +51,7 @@ jobs: run: | sudo chown runner /mnt git clone -b ${TARGET_VERSION} git://git.yoctoproject.org/poky.git - git clone -b ${TARGET_VERSION} https://github.com/riscv/meta-riscv.git + git clone -b master https://github.com/riscv/meta-riscv.git git clone -b ${TARGET_VERSION} git://git.openembedded.org/meta-openembedded working-directory: /mnt From f8cfee8ada1b5bc98f8b8918022780eda7aca76b Mon Sep 17 00:00:00 2001 From: Nobuo Tsukamoto Date: Fri, 12 Apr 2024 07:45:51 +0900 Subject: [PATCH 4/9] Update build_riscv.yml --- .github/workflows/build_riscv.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_riscv.yml b/.github/workflows/build_riscv.yml index 31abce6..4c64c1c 100755 --- a/.github/workflows/build_riscv.yml +++ b/.github/workflows/build_riscv.yml @@ -53,16 +53,16 @@ jobs: git clone -b ${TARGET_VERSION} git://git.yoctoproject.org/poky.git git clone -b master https://github.com/riscv/meta-riscv.git git clone -b ${TARGET_VERSION} git://git.openembedded.org/meta-openembedded - working-directory: /mnt + working-directory: /home/runner/work # Run bitbake - name: Bitbake MACHINE=${{ matrix.target_machine }}, TensorFlow-Lite ${{ matrix.tensorflow_version }} run: | source poky/oe-init-build-env rpi-build - bitbake-layers add-layer ../meta-openembedded/meta-oe/ - bitbake-layers add-layer ../meta-openembedded/meta-python/ + bitbake-layers add-layer /home/runner/work/meta-openembedded/meta-oe/ + bitbake-layers add-layer /home/runner/work/meta-openembedded/meta-python/ bitbake-layers add-layer /home/runner/work/meta-tensorflow-lite/meta-tensorflow-lite/ - bitbake-layers add-layer ../meta-riscv/ + bitbake-layers add-layer /home/runner/work/meta-riscv/ cat < conf/auto.conf FORTRAN:forcevariable = ",fortran" PREFERRED_VERSION_python3-tensorflow-lite="${{ matrix.tensorflow_version }}" From ab3a91edcfce33cca0ba76890b032b5946633da4 Mon Sep 17 00:00:00 2001 From: Nobuo Tsukamoto Date: Fri, 12 Apr 2024 07:49:56 +0900 Subject: [PATCH 5/9] Update build_riscv.yml --- .github/workflows/build_riscv.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_riscv.yml b/.github/workflows/build_riscv.yml index 4c64c1c..de1a540 100755 --- a/.github/workflows/build_riscv.yml +++ b/.github/workflows/build_riscv.yml @@ -58,7 +58,7 @@ jobs: # Run bitbake - name: Bitbake MACHINE=${{ matrix.target_machine }}, TensorFlow-Lite ${{ matrix.tensorflow_version }} run: | - source poky/oe-init-build-env rpi-build + source /home/runner/work/poky/oe-init-build-env rpi-build bitbake-layers add-layer /home/runner/work/meta-openembedded/meta-oe/ bitbake-layers add-layer /home/runner/work/meta-openembedded/meta-python/ bitbake-layers add-layer /home/runner/work/meta-tensorflow-lite/meta-tensorflow-lite/ From f8aa4453c0af23f4a480bf326826d5751047fa13 Mon Sep 17 00:00:00 2001 From: Nobuo Tsukamoto Date: Sat, 13 Apr 2024 07:49:21 +0900 Subject: [PATCH 6/9] Update build_riscv.yml --- .github/workflows/build_riscv.yml | 194 ++++++++++++++++++++++++++++-- 1 file changed, 186 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_riscv.yml b/.github/workflows/build_riscv.yml index de1a540..2326abf 100755 --- a/.github/workflows/build_riscv.yml +++ b/.github/workflows/build_riscv.yml @@ -35,6 +35,185 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 + + - name: Cleanup + run: | + docker images + sudo rm -rf "/opt/*" || true + sudo rm -rf "/usr/share/dotnet" || true + sudo rm -rf "$AGENT_TOOLSDIRECTORY" || true + sudo rm -rf "/usr/local/lib/android" || true + sudo rm -rf "/usr/local/share/boost" || true + sudo rm -rf "/usr/lib/jvm" || true + sudo rm -rf "/usr/share/swift" || true + sudo rm -rf "/usr/local/julia*" || true + sudo rm -rf "/usr/share/kotlinc" || true + sudo rm -rf "/usr/local/share/edge_driver" || true + sudo rm -rf "/usr/local/share/chromedriver-linux64" || true + sudo rm -rf "/usr/local/share/gecko_driver" || true + sudo rm -rf "/usr/share/miniconda" || true + sudo rm -rf "/usr/local/share/phantomjs*" || true + sudo rm -rf "/usr/share/sbt" || true + sudo rm -rf "/usr/local/sqlpackage" || true + sudo rm -rf "/usr/bin/yq" || true + sudo rm -rf "/usr/local/share/vcpkg" || true + sudo rm -rf "/usr/local/bin/terraform" || true + sudo rm -rf "/usr/local/bin/stack" || true + sudo rm -rf "/usr/local/bin/aliyun" || true + sudo rm -rf "/usr/local/bin/pulumi" || true + sudo rm -rf "/usr/local/bin/pulumi-language-dotnet" || true + sudo rm -rf "/usr/local/bin/azcopy" || true + sudo rm -rf "/usr/local/aws-cli" || true + sudo rm -rf "/usr/local/bin/bicep" || true + sudo rm -rf "/usr/local/bin/rebar3" || true + sudo rm -rf "/usr/local/bin/phpunit" || true + sudo rm -rf "/usr/local/bin/packer" || true + sudo rm -rf "/usr/local/bin/bicep" || true + sudo rm -rf "/usr/local/bin/docker-compose" || true + sudo rm -rf "/home/.dotnet/tools" || true + sudo rm -rf "/etc/skel/.dotnet/tools" || true + sudo rm -rf "/usr/local/bin/minikube" || true + sudo rm -rf "/usr/local/bin/kustomize" || true + sudo rm -rf "/usr/local/bin/kubectl" || true + sudo rm -rf "/usr/local/bin/kind" || true + sudo rm -rf "/usr/local/bin/helm" || true + sudo rm -rf "/home/linuxbrew" || true + sudo rm -rf "/usr/share/apache-maven-3.8.8" || true + sudo rm -rf "/usr/share/gradle-8.7" || true + sudo rm -rf "/usr/local/share/phantomjs-8.6" || true + sudo rm -rf "/usr/local/bin/azcopy_11.3.1" || true + sudo rm -rf "/usr/local/bin/bicep" || true + sudo rm -rf "/usr/local/bin/.ghcup" || true + sudo rm -rf "/usr/local/.ghcup" || true + sudo rm -rf "/home/.nvm" || true + sudo rm -rf "/usr/bin/composer" || true + sudo rm -rf "/usr/local/bin/phpunit" || true + sudo rm -rf "/usr/local/bin/pulumi-analyzer-policy" || true + sudo rm -rf "/usr/local/bin/pulumi-analyzer-policy-python" || true + sudo rm -rf "/usr/local/bin/pulumi-language-java" || true + sudo rm -rf "/usr/local/bin/pulumi-language-nodejs" || true + sudo rm -rf "/usr/local/bin/pulumi-language-go" || true + sudo rm -rf "/usr/local/bin/pulumi-language-python" || true + sudo rm -rf "/usr/local/bin/pulumi-language-python-exec" || true + sudo rm -rf "/usr/local/bin/pulumi-language-yaml" || true + sudo rm -rf "/usr/local/bin/pulumi-resource-pulumi-nodejs" || true + sudo rm -rf "/usr/local/bin/pulumi-resource-pulumi-python" || true + sudo rm -rf "/usr/local/bin/pulumi-watch" || true + sudo rm -rf "/usr/local/bin/oc" || true + sudo rm -rf "/usr/local/bin/ctest" || true + sudo rm -rf "/usr/local/bin/cmake-gui" || true + sudo rm -rf "/usr/local/bin/ccmake" || true + sudo rm -rf "/usr/local/bin/cpack" || true + sudo rm -rf "/usr/local/bin/oras" || true + sudo rm -rf "/usr/local/share/emacs" || true + sudo rm -rf "/usr/local/share/fonts" || true + sudo rm -rf "/usr/local/share/icons" || true + sudo rm -rf "/usr/local/share/man" || true + sudo rm -rf "/usr/local/share/chromium" || true + sudo rm -rf "/usr/local/share/powershell" || true + sudo rm -rf "/usr/local/share/doc" || true + sudo rm -rf "/home/perflog" || true + sudo rm -rf "/usr/libexec/docker/cli-plugins" || true + sudo rm -rf "/usr/bin/docker-credential-ecr-login" || true + sudo rm -rf "/usr/local/lib/lein" || true + sudo docker image prune --all --force + sudo npm uninstall bazel || true + sudo npm uninstall bazelisk || true + rustup self uninstall -y + sudo apt purge \ + ansible \ + aria2 \ + azure-cli \ + cabal* \ + clang* \ + dotnet-sdk* \ + ghc* \ + google-chrome-stable \ + kubectl \ + mysql* \ + node* \ + npm* \ + php* \ + powershell \ + rpm \ + ruby* \ + subversion \ + yarn \ + firefox \ + mono-complete \ + nuget \ + apache2 \ + moby-engine \ + moby-cli \ + moby-buildx \ + moby-compose \ + microsoft-edge-stable \ + mongodb* \ + nginx \ + postgresql* \ + libpq-dev \ + r-base \ + sphinxsearch \ + swig \ + tcl \ + temurin-* \ + skopeo \ + imagemagick-* \ + mssql-tools* \ + unixodbc-dev \ + ubuntu-advantage-tools \ + docker-* \ + fonts-* \ + llvm-* \ + javascript-common \ + openjdk-11-jre-headless \ + linux-cloud-tools* \ + linux-azure-6.2-* \ + hicolor-icon-theme \ + gcc-9 \ + gcc-10 \ + gcc-11 \ + gcc-12 \ + cloud-initramfs* \ + x11-* \ + bind9-* \ + cloud-* \ + gir1.2-* \ + golang-github-* \ + libjs-* \ + libllvm* \ + nano \ + python3-* \ + podman \ + buildah \ + skopeo \ + temurin-* \ + ant \ + ant-optional \ + libmysqlclient-dev \ + libxft-dev \ + libfreetype6-dev \ + libfontconfig1-dev \ + libpq-dev \ + tcl* \ + p7zip* \ + gfortran-13 \ + gcc-12-* \ + gcc-11-* \ + google-cloud-cli \ + heroku \ + snmp \ + liblz4-dev \ + man-db \ + packages-microsoft-prod \ + perl \ + *-dev \ + linux-headers-* \ + manpages \ + -yq || true + sudo dpkg -r packages-microsoft-prod > /dev/null 2>&1 || true + sudo apt-get autoremove -y > /dev/null 2>&1 || true + sudo apt-get autoclean -y > /dev/null 2>&1 || true # Install essential host packages - name: Install Pakages @@ -49,20 +228,19 @@ jobs: # checkout repository - name: Clone poky, meta-raspberrypi, meta-openembedded run: | - sudo chown runner /mnt git clone -b ${TARGET_VERSION} git://git.yoctoproject.org/poky.git git clone -b master https://github.com/riscv/meta-riscv.git git clone -b ${TARGET_VERSION} git://git.openembedded.org/meta-openembedded - working-directory: /home/runner/work + working-directory: .. # Run bitbake - name: Bitbake MACHINE=${{ matrix.target_machine }}, TensorFlow-Lite ${{ matrix.tensorflow_version }} run: | - source /home/runner/work/poky/oe-init-build-env rpi-build - bitbake-layers add-layer /home/runner/work/meta-openembedded/meta-oe/ - bitbake-layers add-layer /home/runner/work/meta-openembedded/meta-python/ - bitbake-layers add-layer /home/runner/work/meta-tensorflow-lite/meta-tensorflow-lite/ - bitbake-layers add-layer /home/runner/work/meta-riscv/ + source poky/oe-init-build-env rpi-build + bitbake-layers add-layer ../meta-openembedded/meta-oe/ + bitbake-layers add-layer ../meta-openembedded/meta-python/ + bitbake-layers add-layer ../meta-tensorflow-lite/meta-tensorflow-lite/ + bitbake-layers add-layer ../meta-riscv/ cat < conf/auto.conf FORTRAN:forcevariable = ",fortran" PREFERRED_VERSION_python3-tensorflow-lite="${{ matrix.tensorflow_version }}" @@ -73,4 +251,4 @@ jobs: libtensorflow-lite-c python3-tensorflow-lite-example tensorflow-lite-label-image \ tensorflow-lite-minimal tensorflow-lite-benchmark libedgetpu-std df -h - working-directory: /mnt + working-directory: ../ From 3fc2eeb4ae87ab991fabf9c46448ba8ba42fb7f7 Mon Sep 17 00:00:00 2001 From: Nobuo Tsukamoto Date: Sat, 13 Apr 2024 07:55:56 +0900 Subject: [PATCH 7/9] Update build_riscv.yml --- .github/workflows/build_riscv.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_riscv.yml b/.github/workflows/build_riscv.yml index 2326abf..4469c2a 100755 --- a/.github/workflows/build_riscv.yml +++ b/.github/workflows/build_riscv.yml @@ -239,7 +239,7 @@ jobs: source poky/oe-init-build-env rpi-build bitbake-layers add-layer ../meta-openembedded/meta-oe/ bitbake-layers add-layer ../meta-openembedded/meta-python/ - bitbake-layers add-layer ../meta-tensorflow-lite/meta-tensorflow-lite/ + bitbake-layers add-layer ../meta-tensorflow-lite/ bitbake-layers add-layer ../meta-riscv/ cat < conf/auto.conf FORTRAN:forcevariable = ",fortran" From 046f44ee7de91cdef19e2faf35a9594d881a1741 Mon Sep 17 00:00:00 2001 From: Nobuo Tsukamoto Date: Sun, 14 Apr 2024 08:05:17 +0900 Subject: [PATCH 8/9] Update build_riscv.yml --- .github/workflows/build_riscv.yml | 203 ++---------------------------- 1 file changed, 12 insertions(+), 191 deletions(-) diff --git a/.github/workflows/build_riscv.yml b/.github/workflows/build_riscv.yml index 4469c2a..bd7b2b4 100755 --- a/.github/workflows/build_riscv.yml +++ b/.github/workflows/build_riscv.yml @@ -35,185 +35,6 @@ jobs: steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v2 - - - name: Cleanup - run: | - docker images - sudo rm -rf "/opt/*" || true - sudo rm -rf "/usr/share/dotnet" || true - sudo rm -rf "$AGENT_TOOLSDIRECTORY" || true - sudo rm -rf "/usr/local/lib/android" || true - sudo rm -rf "/usr/local/share/boost" || true - sudo rm -rf "/usr/lib/jvm" || true - sudo rm -rf "/usr/share/swift" || true - sudo rm -rf "/usr/local/julia*" || true - sudo rm -rf "/usr/share/kotlinc" || true - sudo rm -rf "/usr/local/share/edge_driver" || true - sudo rm -rf "/usr/local/share/chromedriver-linux64" || true - sudo rm -rf "/usr/local/share/gecko_driver" || true - sudo rm -rf "/usr/share/miniconda" || true - sudo rm -rf "/usr/local/share/phantomjs*" || true - sudo rm -rf "/usr/share/sbt" || true - sudo rm -rf "/usr/local/sqlpackage" || true - sudo rm -rf "/usr/bin/yq" || true - sudo rm -rf "/usr/local/share/vcpkg" || true - sudo rm -rf "/usr/local/bin/terraform" || true - sudo rm -rf "/usr/local/bin/stack" || true - sudo rm -rf "/usr/local/bin/aliyun" || true - sudo rm -rf "/usr/local/bin/pulumi" || true - sudo rm -rf "/usr/local/bin/pulumi-language-dotnet" || true - sudo rm -rf "/usr/local/bin/azcopy" || true - sudo rm -rf "/usr/local/aws-cli" || true - sudo rm -rf "/usr/local/bin/bicep" || true - sudo rm -rf "/usr/local/bin/rebar3" || true - sudo rm -rf "/usr/local/bin/phpunit" || true - sudo rm -rf "/usr/local/bin/packer" || true - sudo rm -rf "/usr/local/bin/bicep" || true - sudo rm -rf "/usr/local/bin/docker-compose" || true - sudo rm -rf "/home/.dotnet/tools" || true - sudo rm -rf "/etc/skel/.dotnet/tools" || true - sudo rm -rf "/usr/local/bin/minikube" || true - sudo rm -rf "/usr/local/bin/kustomize" || true - sudo rm -rf "/usr/local/bin/kubectl" || true - sudo rm -rf "/usr/local/bin/kind" || true - sudo rm -rf "/usr/local/bin/helm" || true - sudo rm -rf "/home/linuxbrew" || true - sudo rm -rf "/usr/share/apache-maven-3.8.8" || true - sudo rm -rf "/usr/share/gradle-8.7" || true - sudo rm -rf "/usr/local/share/phantomjs-8.6" || true - sudo rm -rf "/usr/local/bin/azcopy_11.3.1" || true - sudo rm -rf "/usr/local/bin/bicep" || true - sudo rm -rf "/usr/local/bin/.ghcup" || true - sudo rm -rf "/usr/local/.ghcup" || true - sudo rm -rf "/home/.nvm" || true - sudo rm -rf "/usr/bin/composer" || true - sudo rm -rf "/usr/local/bin/phpunit" || true - sudo rm -rf "/usr/local/bin/pulumi-analyzer-policy" || true - sudo rm -rf "/usr/local/bin/pulumi-analyzer-policy-python" || true - sudo rm -rf "/usr/local/bin/pulumi-language-java" || true - sudo rm -rf "/usr/local/bin/pulumi-language-nodejs" || true - sudo rm -rf "/usr/local/bin/pulumi-language-go" || true - sudo rm -rf "/usr/local/bin/pulumi-language-python" || true - sudo rm -rf "/usr/local/bin/pulumi-language-python-exec" || true - sudo rm -rf "/usr/local/bin/pulumi-language-yaml" || true - sudo rm -rf "/usr/local/bin/pulumi-resource-pulumi-nodejs" || true - sudo rm -rf "/usr/local/bin/pulumi-resource-pulumi-python" || true - sudo rm -rf "/usr/local/bin/pulumi-watch" || true - sudo rm -rf "/usr/local/bin/oc" || true - sudo rm -rf "/usr/local/bin/ctest" || true - sudo rm -rf "/usr/local/bin/cmake-gui" || true - sudo rm -rf "/usr/local/bin/ccmake" || true - sudo rm -rf "/usr/local/bin/cpack" || true - sudo rm -rf "/usr/local/bin/oras" || true - sudo rm -rf "/usr/local/share/emacs" || true - sudo rm -rf "/usr/local/share/fonts" || true - sudo rm -rf "/usr/local/share/icons" || true - sudo rm -rf "/usr/local/share/man" || true - sudo rm -rf "/usr/local/share/chromium" || true - sudo rm -rf "/usr/local/share/powershell" || true - sudo rm -rf "/usr/local/share/doc" || true - sudo rm -rf "/home/perflog" || true - sudo rm -rf "/usr/libexec/docker/cli-plugins" || true - sudo rm -rf "/usr/bin/docker-credential-ecr-login" || true - sudo rm -rf "/usr/local/lib/lein" || true - sudo docker image prune --all --force - sudo npm uninstall bazel || true - sudo npm uninstall bazelisk || true - rustup self uninstall -y - sudo apt purge \ - ansible \ - aria2 \ - azure-cli \ - cabal* \ - clang* \ - dotnet-sdk* \ - ghc* \ - google-chrome-stable \ - kubectl \ - mysql* \ - node* \ - npm* \ - php* \ - powershell \ - rpm \ - ruby* \ - subversion \ - yarn \ - firefox \ - mono-complete \ - nuget \ - apache2 \ - moby-engine \ - moby-cli \ - moby-buildx \ - moby-compose \ - microsoft-edge-stable \ - mongodb* \ - nginx \ - postgresql* \ - libpq-dev \ - r-base \ - sphinxsearch \ - swig \ - tcl \ - temurin-* \ - skopeo \ - imagemagick-* \ - mssql-tools* \ - unixodbc-dev \ - ubuntu-advantage-tools \ - docker-* \ - fonts-* \ - llvm-* \ - javascript-common \ - openjdk-11-jre-headless \ - linux-cloud-tools* \ - linux-azure-6.2-* \ - hicolor-icon-theme \ - gcc-9 \ - gcc-10 \ - gcc-11 \ - gcc-12 \ - cloud-initramfs* \ - x11-* \ - bind9-* \ - cloud-* \ - gir1.2-* \ - golang-github-* \ - libjs-* \ - libllvm* \ - nano \ - python3-* \ - podman \ - buildah \ - skopeo \ - temurin-* \ - ant \ - ant-optional \ - libmysqlclient-dev \ - libxft-dev \ - libfreetype6-dev \ - libfontconfig1-dev \ - libpq-dev \ - tcl* \ - p7zip* \ - gfortran-13 \ - gcc-12-* \ - gcc-11-* \ - google-cloud-cli \ - heroku \ - snmp \ - liblz4-dev \ - man-db \ - packages-microsoft-prod \ - perl \ - *-dev \ - linux-headers-* \ - manpages \ - -yq || true - sudo dpkg -r packages-microsoft-prod > /dev/null 2>&1 || true - sudo apt-get autoremove -y > /dev/null 2>&1 || true - sudo apt-get autoclean -y > /dev/null 2>&1 || true # Install essential host packages - name: Install Pakages @@ -228,27 +49,27 @@ jobs: # checkout repository - name: Clone poky, meta-raspberrypi, meta-openembedded run: | - git clone -b ${TARGET_VERSION} git://git.yoctoproject.org/poky.git - git clone -b master https://github.com/riscv/meta-riscv.git - git clone -b ${TARGET_VERSION} git://git.openembedded.org/meta-openembedded - working-directory: .. + sudo chown runner /mnt + git clone -b ${TARGET_VERSION} https://github.com/riscv/meta-riscv.git + git clone -b ${TARGET_VERSION} https://github.com/openembedded/openembedded-core.git + git clone -b ${TARGET_BITBAKE_VERSION} https://github.com/openembedded/bitbake.git + git clone -b ${TARGET_VERSION} https://github.com/openembedded/meta-openembedded.git + working-directory: /home/runner/work # Run bitbake - name: Bitbake MACHINE=${{ matrix.target_machine }}, TensorFlow-Lite ${{ matrix.tensorflow_version }} run: | - source poky/oe-init-build-env rpi-build - bitbake-layers add-layer ../meta-openembedded/meta-oe/ - bitbake-layers add-layer ../meta-openembedded/meta-python/ - bitbake-layers add-layer ../meta-tensorflow-lite/ - bitbake-layers add-layer ../meta-riscv/ + source /home/runner/work/openembedded-core/oe-init-build-env build + bitbake-layers add-layer /home/runner/work/meta-openembedded/meta-oe/ + bitbake-layers add-layer /home/runner/work/meta-openembedded/meta-python/ + bitbake-layers add-layer /home/runner/work/meta-tensorflow-lite/meta-tensorflow-lite/ + bitbake-layers add-layer /home/runner/work/meta-riscv/ cat < conf/auto.conf FORTRAN:forcevariable = ",fortran" - PREFERRED_VERSION_python3-tensorflow-lite="${{ matrix.tensorflow_version }}" - PREFERRED_VERSION_libtensorflow-lite="${{ matrix.tensorflow_version }}" EOF cat conf/auto.conf MACHINE=${{matrix.target_machine}} bitbake python3-tensorflow-lite libtensorflow-lite \ libtensorflow-lite-c python3-tensorflow-lite-example tensorflow-lite-label-image \ tensorflow-lite-minimal tensorflow-lite-benchmark libedgetpu-std df -h - working-directory: ../ + working-directory: /mnt \ No newline at end of file From f9ae1ab6214dea2ea9c79c8d4fa206ae30384a30 Mon Sep 17 00:00:00 2001 From: Nobuo Tsukamoto Date: Sun, 14 Apr 2024 12:00:11 +0900 Subject: [PATCH 9/9] Update build_riscv.yml --- .github/workflows/build_riscv.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_riscv.yml b/.github/workflows/build_riscv.yml index bd7b2b4..8e4b7e4 100755 --- a/.github/workflows/build_riscv.yml +++ b/.github/workflows/build_riscv.yml @@ -47,10 +47,10 @@ jobs: sudo apt-get clean # checkout repository - - name: Clone poky, meta-raspberrypi, meta-openembedded + - name: Clone meta-riscv, openembedded-core, bitbake, meta-openembedded run: | sudo chown runner /mnt - git clone -b ${TARGET_VERSION} https://github.com/riscv/meta-riscv.git + git clone -b master https://github.com/riscv/meta-riscv.git git clone -b ${TARGET_VERSION} https://github.com/openembedded/openembedded-core.git git clone -b ${TARGET_BITBAKE_VERSION} https://github.com/openembedded/bitbake.git git clone -b ${TARGET_VERSION} https://github.com/openembedded/meta-openembedded.git