Skip to content

Commit

Permalink
[langdale] Update workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
NobuoTsukamoto committed Apr 8, 2024
1 parent 4786c41 commit ccd912e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 30 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/build_riscv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,36 +40,29 @@ 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 ${TARGET_BITBAKE_VERSION} 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
- name: Bitbake MACHINE=${{ matrix.target_machine }}, TensorFlow-Lite Python ${{ matrix.tensorflow_version }}
run: |
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
cat <<EOF> conf/auto.conf
FORTRAN:forcevariable = ",fortran"
Expand All @@ -78,4 +71,4 @@ jobs:
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
working-directory: ../
working-directory: /mnt
23 changes: 8 additions & 15 deletions .github/workflows/build_rpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,35 +39,28 @@ 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
- 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 /home/runner/work/meta-tensorflow-lite/meta-tensorflow-lite/
bitbake-layers add-layer ../meta-raspberrypi/
cat <<EOF> conf/auto.conf
FORTRAN:forcevariable = ",fortran"
Expand All @@ -77,4 +70,4 @@ jobs:
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-max
working-directory: ../
working-directory: /mnt

0 comments on commit ccd912e

Please sign in to comment.