diff --git a/.github/workflows/buildPi.yml b/.github/workflows/buildPi.yml index 13583d4..71ef255 100644 --- a/.github/workflows/buildPi.yml +++ b/.github/workflows/buildPi.yml @@ -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: @@ -66,4 +81,6 @@ jobs: *.deb *.log if-no-files-found: error + + diff --git a/.github/workflows/buildPi4.yml b/.github/workflows/buildPi4.yml index cbf6c59..eebd93a 100644 --- a/.github/workflows/buildPi4.yml +++ b/.github/workflows/buildPi4.yml @@ -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: diff --git a/build.sh b/build.sh index e00ab14..41db2c7 100755 --- a/build.sh +++ b/build.sh @@ -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