Skip to content

Commit

Permalink
Update workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
NobuoTsukamoto committed Apr 14, 2024
1 parent dd50540 commit c5aa10b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/build_riscv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,25 @@ jobs:
sudo apt-get clean
# checkout repository
- name: Clone repository
- name: Clone meta-riscv, openembedded-core, bitbake, meta-openembedded
run: |
sudo chown runner /mnt
git clone 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: /mnt
working-directory: /home/runner/work

# Run bitbake
- name: Bitbake MACHINE=${{ matrix.target_machine }}, TensorFlow-Lite Python ${{ matrix.tensorflow_version }}
- name: Bitbake MACHINE=${{ matrix.target_machine }}, TensorFlow-Lite version ${{ 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
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 ../meta-riscv
bitbake-layers add-layer /home/runner/work/meta-riscv
cat <<EOF> 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 \
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/build_rpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,18 @@ jobs:
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: /mnt
working-directory: /home/runner/work

# Run bitbake
- name: Bitbake MACHINE=${{ matrix.target_machine }}, TensorFlow-Lite ${{ matrix.tensorflow_version }}
- name: Bitbake MACHINE=${{ matrix.target_machine }}, TensorFlow-Lite version ${{ 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/
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 ../meta-raspberrypi/
bitbake-layers add-layer /home/runner/work/meta-raspberrypi/
cat <<EOF> 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
Expand Down

0 comments on commit c5aa10b

Please sign in to comment.