Skip to content

Commit

Permalink
faster build
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Feb 19, 2024
1 parent 79fc386 commit 1826140
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/buildPi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,22 @@ jobs:
- name: Compose release filename
# https://stackoverflow.com/questions/58033366/how-to-get-current-branch-within-github-actions
run: echo "artifact_name=ohd-kernel-${{ matrix.PLATFORM }}-${{ matrix.DISTRO }}-${GITHUB_REF##*/}" >> $GITHUB_ENV


- name: Push
id: push
uses: cloudsmith-io/action@master
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: "push"
format: "deb"
owner: "openhd"
repo: "release"
distro: "raspbian"
release: "bullseye"
republish: "true" # needed ONLY if version is not changing
file: "*.deb"

if: ${{ github.ref != 'refs/heads/2.5-evo' }}
- name: Package firmware ${{ matrix.PLATFORM }} ${{ matrix.DISTRO }}
uses: 'actions/upload-artifact@v2'
with:
Expand All @@ -66,4 +81,6 @@ jobs:
*.deb
*.log
if-no-files-found: error



16 changes: 15 additions & 1 deletion .github/workflows/buildPi4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,21 @@ jobs:
- name: Compose release filename
# https://stackoverflow.com/questions/58033366/how-to-get-current-branch-within-github-actions
run: echo "artifact_name=ohd-kernel-${{ matrix.PLATFORM }}-${{ matrix.DISTRO }}-${GITHUB_REF##*/}" >> $GITHUB_ENV


- name: Push
id: push
uses: cloudsmith-io/action@master
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: "push"
format: "deb"
owner: "openhd"
repo: "release"
distro: "raspbian"
release: "bullseye"
republish: "true" # needed ONLY if version is not changing
file: "*.deb"

- name: Package firmware ${{ matrix.PLATFORM }} ${{ matrix.DISTRO }}
uses: 'actions/upload-artifact@v2'
with:
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ if [[ "${PLATFORM}" == "pi" ]]; then
#copy drivers, not copying the makefile (the makefile will make the kernel not build)
cp -r $RELEASE_PACK_DIR/driver_source/cam_drv_src/rpi-6.1.y/*.c workdir/linux-pi/drivers/media/i2c/ || exit 1
cp -r $RELEASE_PACK_DIR/driver_source/cam_drv_src/rpi-6.1.y/*.h workdir/linux-pi/drivers/media/i2c/ || exit 1
echo 'obj-m += veye_mvcam.o veyecam2m.o cssc132.o' >> workdir/linux-pi/drivers/media/i2c/Makefile
echo 'obj-m += veye_mvcam.o veyecam2m.o csimx307.o cssc132.o' >> workdir/linux-pi/drivers/media/i2c/Makefile
cp -r additional/Kconfig workdir/linux-pi/drivers/media/i2c/ || exit 1
#copying the dts-files
cp -r $RELEASE_PACK_DIR/driver_source/dts/rpi-6.1.y/* workdir/linux-pi/arch/arm/boot/dts/overlays/ || exit 1
Expand Down

0 comments on commit 1826140

Please sign in to comment.