Skip to content

Commit

Permalink
Merge pull request #81 from NobuoTsukamoto/nabield_fix_workflows
Browse files Browse the repository at this point in the history
Fix workflow target branch.
  • Loading branch information
NobuoTsukamoto authored Apr 14, 2024
2 parents 74b8aad + f9ae1ab commit d2b6bf8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/build_riscv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -47,27 +47,25 @@ 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} 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
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
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/
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-raspberrypi/
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 }}"
LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch"
EOF
cat conf/auto.conf
MACHINE=${{matrix.target_machine}} bitbake python3-tensorflow-lite libtensorflow-lite \
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_rpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit d2b6bf8

Please sign in to comment.