diff --git a/.github/workflows/build_riscv.yml b/.github/workflows/build_riscv.yml index 1d1ec7b..6c1325f 100644 --- a/.github/workflows/build_riscv.yml +++ b/.github/workflows/build_riscv.yml @@ -39,28 +39,21 @@ jobs: - name: Install Pakages run: | sudo apt-get update - sudo apt-get -y install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm zstd liblz4-tool + sudo apt-get -y install gawk wget git-core diffstat unzip texinfo gcc-multilib \ + build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils \ + debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \ + pylint xterm zstd liblz4-tool sudo apt-get clean - - # Check space before cleanup - - name: Check space before cleanup - run: | - df -h - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - sudo rm -rf /usr/share/dotnet - sudo rm -rf /usr/local/lib/android - sudo rm -rf /opt/ghc - df -h # checkout repository - name: Clone repository run: | + 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 1.46 https://github.com/openembedded/bitbake.git git clone -b ${TARGET_VERSION} https://github.com/openembedded/meta-openembedded.git - working-directory: ../ + working-directory: /mnt # Run bitbake python3-tensorflow-lite and cpp-tensorflow-lite - name: Bitbake MACHINE=${{ matrix.target_machine }}, TensorFlow-Lite Python ${{ matrix.tensorflow_version }} @@ -68,7 +61,7 @@ jobs: source openembedded-core/oe-init-build-env 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 /home/runner/work/meta-tensorflow-lite/meta-tensorflow-lite bitbake-layers add-layer ../meta-riscv export BITBAKE_OPTION="python3-tensorflow-lite" case "${{ matrix.tensorflow_version }}" in @@ -83,4 +76,4 @@ jobs: EOF cat conf/auto.conf MACHINE=${{matrix.target_machine}} bitbake ${BITBAKE_OPTION} - working-directory: ../ + working-directory: /mnt diff --git a/.github/workflows/build_rpi.yml b/.github/workflows/build_rpi.yml index e46b6fa..84ab03c 100644 --- a/.github/workflows/build_rpi.yml +++ b/.github/workflows/build_rpi.yml @@ -39,27 +39,20 @@ jobs: - name: Install Pakages run: | sudo apt-get update - sudo apt-get -y install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm + sudo apt-get -y install gawk wget git-core diffstat unzip texinfo gcc-multilib \ + build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils \ + debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \ + pylint xterm zstd liblz4-tool sudo apt-get clean - # Check space before cleanup - - name: Check space before cleanup - run: | - df -h - sudo rm -rf "/usr/local/share/boost" - sudo rm -rf "$AGENT_TOOLSDIRECTORY" - sudo rm -rf /usr/share/dotnet - sudo rm -rf /usr/local/lib/android - sudo rm -rf /opt/ghc - df -h - # 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 ${TARGET_VERSION} git://git.yoctoproject.org/meta-raspberrypi git clone -b ${TARGET_VERSION} git://git.openembedded.org/meta-openembedded - working-directory: ../ + working-directory: /mnt # Run bitbake python3-tensorflow-lite and cpp-tensorflow-lite - name: Bitbake MACHINE=${{ matrix.target_machine }}, TensorFlow-Lite ${{ matrix.tensorflow_version }} @@ -67,7 +60,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/ + bitbake-layers add-layer /home/runner/work/meta-tensorflow-lite/meta-tensorflow-lite bitbake-layers add-layer ../meta-raspberrypi/ export BITBAKE_OPTION="python3-tensorflow-lite" case "${{ matrix.tensorflow_version }}" in @@ -82,4 +75,4 @@ jobs: EOF cat conf/auto.conf MACHINE=${{matrix.target_machine}} bitbake ${BITBAKE_OPTION} - working-directory: ../ + working-directory: /mnt