Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix workflow target branch. #81

Merged
merged 9 commits into from
Apr 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading