mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			Add Anyka/old Goke to new CI (#385)
* Use common matrix build * Add GCC 8 compatible patchespull/396/head
							parent
							
								
									97fff4eda1
								
							
						
					
					
						commit
						3c4f55340d
					
				|  | @ -1,152 +0,0 @@ | |||
| name: "AK3916Ev300  " | ||||
| 
 | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - production | ||||
|     tags: | ||||
|       - "v*" | ||||
|   # schedule: | ||||
|   #     - cron: "00 03 * * *" | ||||
|   workflow_dispatch: | ||||
| 
 | ||||
| jobs: | ||||
|   build_core: | ||||
|     name: OpenIPC firmware for AK3916Ev300 | ||||
|     runs-on: ubuntu-latest | ||||
| 
 | ||||
|     steps: | ||||
| 
 | ||||
|       - name: Checkout | ||||
|         id: checkout | ||||
|         uses: actions/checkout@v2 | ||||
| 
 | ||||
|       - name: Install build dependencies | ||||
|         run: | | ||||
|           make install-deps | ||||
|           mkdir -p tmp | ||||
|           if [ ! -z "$ACT" ]; then | ||||
|             apt install -y cpio rsync bc | ||||
|             echo "FORCE_UNSAFE_CONFIGURE=1" >> $GITHUB_ENV | ||||
|             # Mitigate #325 issue | ||||
|             apt install -y pip && pip install cmake | ||||
|           else | ||||
|             # https://github.com/actions/runner-images/issues/2577 | ||||
|             echo "1.1.1.1 invisible-mirror.net" | sudo tee -a /etc/hosts | ||||
|           fi | ||||
| 
 | ||||
|       - name: Free disk space | ||||
|         if: ${{ !env.ACT }} | ||||
|         run: | | ||||
|           sudo swapoff -a | ||||
|           sudo rm -f /swapfile | ||||
|           sudo apt clean | ||||
|           docker rmi $(docker image ls -aq) | ||||
|           df -h | ||||
| 
 | ||||
|       - name: Prepare buildroot | ||||
|         id: prepare | ||||
|         run: | | ||||
|           HEAD_TAG=$(git tag --points-at HEAD) | ||||
|           GIT_HASH=$(git rev-parse --short $GITHUB_SHA) | ||||
|           BRANCH_NAME=$(echo $GITHUB_REF | cut -d'/' -f 3) | ||||
|           if [ -z "$HEAD_TAG" ]; then | ||||
|             TAG_NAME="latest" | ||||
|             RELEASE_NAME="Development Build" | ||||
|             PRERELEASE=true | ||||
|           else | ||||
|             TAG_NAME=${{ github.ref }} | ||||
|             RELEASE_NAME="Release ${{ github.ref }}" | ||||
|             PRERELEASE=false | ||||
|           fi | ||||
|           echo "GIT_HASH=$GIT_HASH" >> $GITHUB_ENV | ||||
|           echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV | ||||
|           echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_ENV | ||||
|           echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV | ||||
|           echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE | ||||
|           make prepare | ||||
| 
 | ||||
|       - name: Build AK3916Ev300 firmware | ||||
|         id: build-ak3916ev300-firmware | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           ARCHIVE_FW="${GITHUB_WORKSPACE}/output/images/openipc.ak3916ev300-br.tgz" | ||||
|           echo "ARCHIVE_FW=$ARCHIVE_FW" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE | ||||
|           make PLATFORM=anyka BOARD=unknown_unknown_ak3916ev300_openipc all | ||||
|           [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... AK3916EV300" >> $GITHUB_ENV && exit 1 | ||||
|           [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... AK3916EV300" >> $GITHUB_ENV && exit 1 | ||||
|           cd ${GITHUB_WORKSPACE}/output/images | ||||
|           mv uImage uImage.ak3916ev300 | ||||
|           mv rootfs.squashfs rootfs.squashfs.ak3916ev300 | ||||
|           md5sum rootfs.squashfs.ak3916ev300 > rootfs.squashfs.ak3916ev300.md5sum | ||||
|           md5sum uImage.ak3916ev300 > uImage.ak3916ev300.md5sum | ||||
|           tar -cvzf $ARCHIVE_FW *ak3916ev300* | ||||
| 
 | ||||
|       - name: Build AK3916Ev300 SDK | ||||
|         id: build-ak3916ev300-sdk | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           ARCHIVE_SDK="${GITHUB_WORKSPACE}/output/images/arm-openipc-linux-musleabi_sdk-buildroot.tar.gz" | ||||
|           echo "ARCHIVE_SDK=$ARCHIVE_SDK" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE/output | ||||
|           make sdk | ||||
| 
 | ||||
|       - name: Send error message to telegram channel | ||||
|         env: | ||||
|           TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }} | ||||
|           TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }} | ||||
|         if: steps.build-ak3916ev300-firmware.outcome != 'success' || steps.build-ak3916ev300-sdk.outcome != 'success' | ||||
|         run: | | ||||
|           TG_OPTIONS="-s --connect-timeout 30 --max-time 30" | ||||
|           TG_NOTIFY="${TG_NOTIFY:=Warning, Buildroot compiling error... AK3916EV300}" | ||||
|           TG_HEADER=$(echo -e "\r\n$TG_NOTIFY \r\n\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH_NAME \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9A\xA0 GitHub Actions") | ||||
|           curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendMessage \ | ||||
|             -F chat_id=$TG_CHANNEL -F text="$TG_HEADER" | ||||
|           exit 2 | ||||
| 
 | ||||
|       - name: Create release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: actions/create-release@v1 | ||||
|         continue-on-error: true | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         with: | ||||
|           tag_name: ${{ env.TAG_NAME }} | ||||
|           release_name: ${{ env.RELEASE_NAME }} | ||||
|           draft: false | ||||
|           prerelease: ${{ env.PRERELEASE }} | ||||
| 
 | ||||
|       - name: Upload NOR FW to release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: svenstaro/upload-release-action@v2 | ||||
|         continue-on-error: true | ||||
|         with: | ||||
|           repo_token: ${{ secrets.GITHUB_TOKEN }} | ||||
|           file: ${{ env.ARCHIVE_FW }} | ||||
|           asset_name: "openipc.ak3916ev300-br.tgz" | ||||
|           tag: ${{ env.TAG_NAME }} | ||||
|           overwrite: true | ||||
| 
 | ||||
|       - name: Upload SDK to release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: svenstaro/upload-release-action@v2 | ||||
|         continue-on-error: true | ||||
|         with: | ||||
|           repo_token: ${{ secrets.GITHUB_TOKEN }} | ||||
|           file: ${{ env.ARCHIVE_SDK }} | ||||
|           asset_name: "arm-openipc-ak3916ev300-linux-musleabi_sdk-buildroot.tar.gz" | ||||
|           tag: ${{ env.TAG_NAME }} | ||||
|           overwrite: true | ||||
| 
 | ||||
|       - name: Send binary file to telegram channel | ||||
|         if: ${{ !env.ACT }} | ||||
|         env: | ||||
|           TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }} | ||||
|           TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }} | ||||
|         run: | | ||||
|           TG_OPTIONS="-s --connect-timeout 30 --max-time 30" | ||||
|           TG_HEADER=$(echo -e "\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH_NAME \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9C\x85 GitHub Actions") | ||||
|           curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendDocument \ | ||||
|             -F chat_id=$TG_CHANNEL -F document="@$ARCHIVE_FW" -F caption="$TG_HEADER" | ||||
|  | @ -1,152 +0,0 @@ | |||
| name: "AK3918Ev200  " | ||||
| 
 | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - production | ||||
|     tags: | ||||
|       - "v*" | ||||
|   # schedule: | ||||
|   #     - cron: "00 03 * * *" | ||||
|   workflow_dispatch: | ||||
| 
 | ||||
| jobs: | ||||
|   build_core: | ||||
|     name: OpenIPC firmware for AK3918Ev200 | ||||
|     runs-on: ubuntu-latest | ||||
| 
 | ||||
|     steps: | ||||
| 
 | ||||
|       - name: Checkout | ||||
|         id: checkout | ||||
|         uses: actions/checkout@v2 | ||||
| 
 | ||||
|       - name: Install build dependencies | ||||
|         run: | | ||||
|           make install-deps | ||||
|           mkdir -p tmp | ||||
|           if [ ! -z "$ACT" ]; then | ||||
|             apt install -y cpio rsync bc | ||||
|             echo "FORCE_UNSAFE_CONFIGURE=1" >> $GITHUB_ENV | ||||
|             # Mitigate #325 issue | ||||
|             apt install -y pip && pip install cmake | ||||
|           else | ||||
|             # https://github.com/actions/runner-images/issues/2577 | ||||
|             echo "1.1.1.1 invisible-mirror.net" | sudo tee -a /etc/hosts | ||||
|           fi | ||||
| 
 | ||||
|       - name: Free disk space | ||||
|         if: ${{ !env.ACT }} | ||||
|         run: | | ||||
|           sudo swapoff -a | ||||
|           sudo rm -f /swapfile | ||||
|           sudo apt clean | ||||
|           docker rmi $(docker image ls -aq) | ||||
|           df -h | ||||
| 
 | ||||
|       - name: Prepare buildroot | ||||
|         id: prepare | ||||
|         run: | | ||||
|           HEAD_TAG=$(git tag --points-at HEAD) | ||||
|           GIT_HASH=$(git rev-parse --short $GITHUB_SHA) | ||||
|           BRANCH_NAME=$(echo $GITHUB_REF | cut -d'/' -f 3) | ||||
|           if [ -z "$HEAD_TAG" ]; then | ||||
|             TAG_NAME="latest" | ||||
|             RELEASE_NAME="Development Build" | ||||
|             PRERELEASE=true | ||||
|           else | ||||
|             TAG_NAME=${{ github.ref }} | ||||
|             RELEASE_NAME="Release ${{ github.ref }}" | ||||
|             PRERELEASE=false | ||||
|           fi | ||||
|           echo "GIT_HASH=$GIT_HASH" >> $GITHUB_ENV | ||||
|           echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV | ||||
|           echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_ENV | ||||
|           echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV | ||||
|           echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE | ||||
|           make prepare | ||||
| 
 | ||||
|       - name: Build Ak3918ev200 firmware | ||||
|         id: build-ak3918ev200-firmware | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           ARCHIVE_FW="${GITHUB_WORKSPACE}/output/images/openipc.ak3918ev200-br.tgz" | ||||
|           echo "ARCHIVE_FW=$ARCHIVE_FW" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE | ||||
|           make PLATFORM=anyka BOARD=unknown_unknown_ak3918ev200_openipc all | ||||
|           [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... AK3918EV200" >> $GITHUB_ENV && exit 1 | ||||
|           [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... AK3918EV200" >> $GITHUB_ENV && exit 1 | ||||
|           cd ${GITHUB_WORKSPACE}/output/images | ||||
|           mv uImage uImage.ak3918ev200 | ||||
|           mv rootfs.squashfs rootfs.squashfs.ak3918ev200 | ||||
|           md5sum rootfs.squashfs.ak3918ev200 > rootfs.squashfs.ak3918ev200.md5sum | ||||
|           md5sum uImage.ak3918ev200 > uImage.ak3918ev200.md5sum | ||||
|           tar -cvzf $ARCHIVE_FW *ak3918ev200* | ||||
| 
 | ||||
|       - name: Build AK3918Ev200 SDK | ||||
|         id: build-ak3918ev200-sdk | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           ARCHIVE_SDK="${GITHUB_WORKSPACE}/output/images/arm-openipc-linux-musleabi_sdk-buildroot.tar.gz" | ||||
|           echo "ARCHIVE_SDK=$ARCHIVE_SDK" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE/output | ||||
|           make sdk | ||||
| 
 | ||||
|       - name: Send error message to telegram channel | ||||
|         env: | ||||
|           TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }} | ||||
|           TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }} | ||||
|         if: steps.build-ak3918ev200-firmware.outcome != 'success' || steps.build-ak3918ev200-sdk.outcome != 'success' | ||||
|         run: | | ||||
|           TG_OPTIONS="-s --connect-timeout 30 --max-time 30" | ||||
|           TG_NOTIFY="${TG_NOTIFY:=Warning, Buildroot compiling error... AK3918EV200}" | ||||
|           TG_HEADER=$(echo -e "\r\n$TG_NOTIFY \r\n\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH_NAME \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9A\xA0 GitHub Actions") | ||||
|           curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendMessage \ | ||||
|             -F chat_id=$TG_CHANNEL -F text="$TG_HEADER" | ||||
|           exit 2 | ||||
| 
 | ||||
|       - name: Create release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: actions/create-release@v1 | ||||
|         continue-on-error: true | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         with: | ||||
|           tag_name: ${{ env.TAG_NAME }} | ||||
|           release_name: ${{ env.RELEASE_NAME }} | ||||
|           draft: false | ||||
|           prerelease: ${{ env.PRERELEASE }} | ||||
| 
 | ||||
|       - name: Upload NOR FW to release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: svenstaro/upload-release-action@v2 | ||||
|         continue-on-error: true | ||||
|         with: | ||||
|           repo_token: ${{ secrets.GITHUB_TOKEN }} | ||||
|           file: ${{ env.ARCHIVE_FW }} | ||||
|           asset_name: "openipc.ak3918ev200-br.tgz" | ||||
|           tag: ${{ env.TAG_NAME }} | ||||
|           overwrite: true | ||||
| 
 | ||||
|       - name: Upload SDK to release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: svenstaro/upload-release-action@v2 | ||||
|         continue-on-error: true | ||||
|         with: | ||||
|           repo_token: ${{ secrets.GITHUB_TOKEN }} | ||||
|           file: ${{ env.ARCHIVE_SDK }} | ||||
|           asset_name: "arm-openipc-ak3918ev200-linux-musleabi_sdk-buildroot.tar.gz" | ||||
|           tag: ${{ env.TAG_NAME }} | ||||
|           overwrite: true | ||||
| 
 | ||||
|       - name: Send binary file to telegram channel | ||||
|         if: ${{ !env.ACT }} | ||||
|         env: | ||||
|           TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }} | ||||
|           TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }} | ||||
|         run: | | ||||
|           TG_OPTIONS="-s --connect-timeout 30 --max-time 30" | ||||
|           TG_HEADER=$(echo -e "\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH_NAME \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9C\x85 GitHub Actions") | ||||
|           curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendDocument \ | ||||
|             -F chat_id=$TG_CHANNEL -F document="@$ARCHIVE_FW" -F caption="$TG_HEADER" | ||||
|  | @ -1,152 +0,0 @@ | |||
| name: "AK3918Ev300  " | ||||
| 
 | ||||
| on: | ||||
|   push: | ||||
|     branches: | ||||
|       - production | ||||
|     tags: | ||||
|       - "v*" | ||||
|   # schedule: | ||||
|   #     - cron: "00 03 * * *" | ||||
|   workflow_dispatch: | ||||
| 
 | ||||
| jobs: | ||||
|   build_core: | ||||
|     name: OpenIPC firmware for AK3918Ev300 | ||||
|     runs-on: ubuntu-latest | ||||
| 
 | ||||
|     steps: | ||||
| 
 | ||||
|       - name: Checkout | ||||
|         id: checkout | ||||
|         uses: actions/checkout@v2 | ||||
| 
 | ||||
|       - name: Install build dependencies | ||||
|         run: | | ||||
|           make install-deps | ||||
|           mkdir -p tmp | ||||
|           if [ ! -z "$ACT" ]; then | ||||
|             apt install -y cpio rsync bc | ||||
|             echo "FORCE_UNSAFE_CONFIGURE=1" >> $GITHUB_ENV | ||||
|             # Mitigate #325 issue | ||||
|             apt install -y pip && pip install cmake | ||||
|           else | ||||
|             # https://github.com/actions/runner-images/issues/2577 | ||||
|             echo "1.1.1.1 invisible-mirror.net" | sudo tee -a /etc/hosts | ||||
|           fi | ||||
| 
 | ||||
|       - name: Free disk space | ||||
|         if: ${{ !env.ACT }} | ||||
|         run: | | ||||
|           sudo swapoff -a | ||||
|           sudo rm -f /swapfile | ||||
|           sudo apt clean | ||||
|           docker rmi $(docker image ls -aq) | ||||
|           df -h | ||||
| 
 | ||||
|       - name: Prepare buildroot | ||||
|         id: prepare | ||||
|         run: | | ||||
|           HEAD_TAG=$(git tag --points-at HEAD) | ||||
|           GIT_HASH=$(git rev-parse --short $GITHUB_SHA) | ||||
|           BRANCH_NAME=$(echo $GITHUB_REF | cut -d'/' -f 3) | ||||
|           if [ -z "$HEAD_TAG" ]; then | ||||
|             TAG_NAME="latest" | ||||
|             RELEASE_NAME="Development Build" | ||||
|             PRERELEASE=true | ||||
|           else | ||||
|             TAG_NAME=${{ github.ref }} | ||||
|             RELEASE_NAME="Release ${{ github.ref }}" | ||||
|             PRERELEASE=false | ||||
|           fi | ||||
|           echo "GIT_HASH=$GIT_HASH" >> $GITHUB_ENV | ||||
|           echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV | ||||
|           echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_ENV | ||||
|           echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV | ||||
|           echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE | ||||
|           make prepare | ||||
| 
 | ||||
|       - name: Build AK3918Ev300 firmware | ||||
|         id: build-ak3918ev300-firmware | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           ARCHIVE_FW="${GITHUB_WORKSPACE}/output/images/openipc.ak3918ev300-br.tgz" | ||||
|           echo "ARCHIVE_FW=$ARCHIVE_FW" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE | ||||
|           make PLATFORM=anyka BOARD=unknown_unknown_ak3918ev300_openipc all | ||||
|           [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... AK3918EV300" >> $GITHUB_ENV && exit 1 | ||||
|           [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... AK3918EV300" >> $GITHUB_ENV && exit 1 | ||||
|           cd ${GITHUB_WORKSPACE}/output/images | ||||
|           mv uImage uImage.ak3918ev300 | ||||
|           mv rootfs.squashfs rootfs.squashfs.ak3918ev300 | ||||
|           md5sum rootfs.squashfs.ak3918ev300 > rootfs.squashfs.ak3918ev300.md5sum | ||||
|           md5sum uImage.ak3918ev300 > uImage.ak3918ev300.md5sum | ||||
|           tar -cvzf $ARCHIVE_FW *ak3918ev300* | ||||
| 
 | ||||
|       - name: Build AK3918Ev300 SDK | ||||
|         id: build-ak3918ev300-sdk | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           ARCHIVE_SDK="${GITHUB_WORKSPACE}/output/images/arm-openipc-linux-musleabi_sdk-buildroot.tar.gz" | ||||
|           echo "ARCHIVE_SDK=$ARCHIVE_SDK" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE/output | ||||
|           make sdk | ||||
| 
 | ||||
|       - name: Send error message to telegram channel | ||||
|         env: | ||||
|           TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }} | ||||
|           TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }} | ||||
|         if: steps.build-ak3918ev300-firmware.outcome != 'success' || steps.build-ak3918ev300-sdk.outcome != 'success' | ||||
|         run: | | ||||
|           TG_OPTIONS="-s --connect-timeout 30 --max-time 30" | ||||
|           TG_NOTIFY="${TG_NOTIFY:=Warning, Buildroot compiling error... AK3918EV300}" | ||||
|           TG_HEADER=$(echo -e "\r\n$TG_NOTIFY \r\n\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH_NAME \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9A\xA0 GitHub Actions") | ||||
|           curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendMessage \ | ||||
|             -F chat_id=$TG_CHANNEL -F text="$TG_HEADER" | ||||
|           exit 2 | ||||
| 
 | ||||
|       - name: Create release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: actions/create-release@v1 | ||||
|         continue-on-error: true | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         with: | ||||
|           tag_name: ${{ env.TAG_NAME }} | ||||
|           release_name: ${{ env.RELEASE_NAME }} | ||||
|           draft: false | ||||
|           prerelease: ${{ env.PRERELEASE }} | ||||
| 
 | ||||
|       - name: Upload NOR FW to release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: svenstaro/upload-release-action@v2 | ||||
|         continue-on-error: true | ||||
|         with: | ||||
|           repo_token: ${{ secrets.GITHUB_TOKEN }} | ||||
|           file: ${{ env.ARCHIVE_FW }} | ||||
|           asset_name: "openipc.ak3918ev300-br.tgz" | ||||
|           tag: ${{ env.TAG_NAME }} | ||||
|           overwrite: true | ||||
| 
 | ||||
|       - name: Upload SDK to release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: svenstaro/upload-release-action@v2 | ||||
|         continue-on-error: true | ||||
|         with: | ||||
|           repo_token: ${{ secrets.GITHUB_TOKEN }} | ||||
|           file: ${{ env.ARCHIVE_SDK }} | ||||
|           asset_name: "arm-openipc-ak3918ev300-linux-musleabi_sdk-buildroot.tar.gz" | ||||
|           tag: ${{ env.TAG_NAME }} | ||||
|           overwrite: true | ||||
| 
 | ||||
|       - name: Send binary file to telegram channel | ||||
|         if: ${{ !env.ACT }} | ||||
|         env: | ||||
|           TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }} | ||||
|           TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }} | ||||
|         run: | | ||||
|           TG_OPTIONS="-s --connect-timeout 30 --max-time 30" | ||||
|           TG_HEADER=$(echo -e "\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH_NAME \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9C\x85 GitHub Actions") | ||||
|           curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendDocument \ | ||||
|             -F chat_id=$TG_CHANNEL -F document="@$ARCHIVE_FW" -F caption="$TG_HEADER" | ||||
|  | @ -1,143 +0,0 @@ | |||
| name: "GK7102" | ||||
| 
 | ||||
| on: | ||||
|   workflow_dispatch: | ||||
| 
 | ||||
| jobs: | ||||
|   build_core: | ||||
|     name: OpenIPC firmware for GK7102 | ||||
|     runs-on: ubuntu-latest | ||||
| 
 | ||||
|     steps: | ||||
| 
 | ||||
|       - name: Checkout | ||||
|         id: checkout | ||||
|         uses: actions/checkout@v2 | ||||
| 
 | ||||
|       - name: Install build dependencies | ||||
|         run: | | ||||
|           make install-deps | ||||
|           mkdir -p tmp | ||||
|           if [ ! -z "$ACT" ]; then | ||||
|             apt install -y cpio rsync bc | ||||
|             echo "FORCE_UNSAFE_CONFIGURE=1" >> $GITHUB_ENV | ||||
|             # Mitigate #325 issue | ||||
|             apt install -y pip && pip install cmake | ||||
|           else | ||||
|             # https://github.com/actions/runner-images/issues/2577 | ||||
|             echo "1.1.1.1 invisible-mirror.net" | sudo tee -a /etc/hosts | ||||
|           fi | ||||
| 
 | ||||
|       - name: Free disk space | ||||
|         if: ${{ !env.ACT }} | ||||
|         run: | | ||||
|           sudo swapoff -a | ||||
|           sudo rm -f /swapfile | ||||
|           sudo apt clean | ||||
|           docker rmi $(docker image ls -aq) | ||||
|           df -h | ||||
| 
 | ||||
|       - name: Prepare buildroot | ||||
|         id: prepare | ||||
|         run: | | ||||
|           HEAD_TAG=$(git tag --points-at HEAD) | ||||
|           GIT_HASH=$(git rev-parse --short $GITHUB_SHA) | ||||
|           BRANCH_NAME=$(echo $GITHUB_REF | cut -d'/' -f 3) | ||||
|           if [ -z "$HEAD_TAG" ]; then | ||||
|             TAG_NAME="latest" | ||||
|             RELEASE_NAME="Development Build" | ||||
|             PRERELEASE=true | ||||
|           else | ||||
|             TAG_NAME=${{ github.ref }} | ||||
|             RELEASE_NAME="Release ${{ github.ref }}" | ||||
|             PRERELEASE=false | ||||
|           fi | ||||
|           echo "GIT_HASH=$GIT_HASH" >> $GITHUB_ENV | ||||
|           echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV | ||||
|           echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_ENV | ||||
|           echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV | ||||
|           echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE | ||||
|           make prepare | ||||
| 
 | ||||
|       - name: Build GK7102 firmware | ||||
|         id: build-gk7102-firmware | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           ARCHIVE_FW="${GITHUB_WORKSPACE}/output/images/openipc.gk7102-br.tgz" | ||||
|           echo "ARCHIVE_FW=$ARCHIVE_FW" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE | ||||
|           make PLATFORM=goke BOARD=unknown_unknown_gk7102_openipc all | ||||
|           [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... GK7102" >> $GITHUB_ENV && exit 1 | ||||
|           [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... GK7102" >> $GITHUB_ENV && exit 1 | ||||
|           cd ${GITHUB_WORKSPACE}/output/images | ||||
|           mv uImage uImage.gk7102 | ||||
|           mv rootfs.squashfs rootfs.squashfs.gk7102 | ||||
|           tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.fh8856 uImage.gk7102 | ||||
| 
 | ||||
|       - name: Build GK7102 SDK | ||||
|         id: build-gk7102-sdk | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           ARCHIVE_SDK="${GITHUB_WORKSPACE}/output/images/arm-openipc-linux-musleabi_sdk-buildroot.tar.gz" | ||||
|           echo "ARCHIVE_SDK=$ARCHIVE_SDK" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE/output | ||||
|           make sdk | ||||
| 
 | ||||
|       - name: Send error message to telegram channel | ||||
|         env: | ||||
|           TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }} | ||||
|           TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }} | ||||
|         if: steps.build-gk7102-firmware.outcome != 'success' || steps.build-gk7102-sdk.outcome != 'success' | ||||
|         run: | | ||||
|           TG_OPTIONS="-s --connect-timeout 30 --max-time 30" | ||||
|           TG_NOTIFY="${TG_NOTIFY:=Warning, Buildroot compiling error... GK7102}" | ||||
|           TG_HEADER=$(echo -e "\r\n$TG_NOTIFY \r\n\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH_NAME \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9A\xA0 GitHub Actions") | ||||
|           curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendMessage \ | ||||
|             -F chat_id=$TG_CHANNEL -F text="$TG_HEADER" | ||||
|           exit 2 | ||||
| 
 | ||||
|       - name: Create release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: actions/create-release@v1 | ||||
|         continue-on-error: true | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         with: | ||||
|           tag_name: ${{ env.TAG_NAME }} | ||||
|           release_name: ${{ env.RELEASE_NAME }} | ||||
|           draft: false | ||||
|           prerelease: ${{ env.PRERELEASE }} | ||||
| 
 | ||||
|       - name: Upload NOR FW to release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: svenstaro/upload-release-action@v2 | ||||
|         continue-on-error: true | ||||
|         with: | ||||
|           repo_token: ${{ secrets.GITHUB_TOKEN }} | ||||
|           file: ${{ env.ARCHIVE_FW }} | ||||
|           asset_name: "openipc.gk7102-br.tgz" | ||||
|           tag: ${{ env.TAG_NAME }} | ||||
|           overwrite: true | ||||
| 
 | ||||
|       - name: Upload SDK to release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: svenstaro/upload-release-action@v2 | ||||
|         continue-on-error: true | ||||
|         with: | ||||
|           repo_token: ${{ secrets.GITHUB_TOKEN }} | ||||
|           file: ${{ env.ARCHIVE_SDK }} | ||||
|           asset_name: "arm-openipc-gk7102-linux-musleabi_sdk-buildroot.tar.gz" | ||||
|           tag: ${{ env.TAG_NAME }} | ||||
|           overwrite: true | ||||
| 
 | ||||
|       - name: Send binary file to telegram channel | ||||
|         if: ${{ !env.ACT }} | ||||
|         env: | ||||
|           TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }} | ||||
|           TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }} | ||||
|         run: | | ||||
|           TG_OPTIONS="-s --connect-timeout 30 --max-time 30" | ||||
|           TG_HEADER=$(echo -e "\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH_NAME \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9C\x85 GitHub Actions") | ||||
|           curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendDocument \ | ||||
|             -F chat_id=$TG_CHANNEL -F document="@$ARCHIVE_FW" -F caption="$TG_HEADER" | ||||
|  | @ -1,143 +0,0 @@ | |||
| name: "GK7102S  " | ||||
| 
 | ||||
| on: | ||||
|   workflow_dispatch: | ||||
| 
 | ||||
| jobs: | ||||
|   build_core: | ||||
|     name: OpenIPC firmware for GK7102S | ||||
|     runs-on: ubuntu-latest | ||||
| 
 | ||||
|     steps: | ||||
| 
 | ||||
|       - name: Checkout | ||||
|         id: checkout | ||||
|         uses: actions/checkout@v2 | ||||
| 
 | ||||
|       - name: Install build dependencies | ||||
|         run: | | ||||
|           make install-deps | ||||
|           mkdir -p tmp | ||||
|           if [ ! -z "$ACT" ]; then | ||||
|             apt install -y cpio rsync bc | ||||
|             echo "FORCE_UNSAFE_CONFIGURE=1" >> $GITHUB_ENV | ||||
|             # Mitigate #325 issue | ||||
|             apt install -y pip && pip install cmake | ||||
|           else | ||||
|             # https://github.com/actions/runner-images/issues/2577 | ||||
|             echo "1.1.1.1 invisible-mirror.net" | sudo tee -a /etc/hosts | ||||
|           fi | ||||
| 
 | ||||
|       - name: Free disk space | ||||
|         if: ${{ !env.ACT }} | ||||
|         run: | | ||||
|           sudo swapoff -a | ||||
|           sudo rm -f /swapfile | ||||
|           sudo apt clean | ||||
|           docker rmi $(docker image ls -aq) | ||||
|           df -h | ||||
| 
 | ||||
|       - name: Prepare buildroot | ||||
|         id: prepare | ||||
|         run: | | ||||
|           HEAD_TAG=$(git tag --points-at HEAD) | ||||
|           GIT_HASH=$(git rev-parse --short $GITHUB_SHA) | ||||
|           BRANCH_NAME=$(echo $GITHUB_REF | cut -d'/' -f 3) | ||||
|           if [ -z "$HEAD_TAG" ]; then | ||||
|             TAG_NAME="latest" | ||||
|             RELEASE_NAME="Development Build" | ||||
|             PRERELEASE=true | ||||
|           else | ||||
|             TAG_NAME=${{ github.ref }} | ||||
|             RELEASE_NAME="Release ${{ github.ref }}" | ||||
|             PRERELEASE=false | ||||
|           fi | ||||
|           echo "GIT_HASH=$GIT_HASH" >> $GITHUB_ENV | ||||
|           echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV | ||||
|           echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_ENV | ||||
|           echo "PRERELEASE=$PRERELEASE" >> $GITHUB_ENV | ||||
|           echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE | ||||
|           make prepare | ||||
| 
 | ||||
|       - name: Build GK7102S firmware | ||||
|         id: build-gk7102s-firmware | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           ARCHIVE_FW="${GITHUB_WORKSPACE}/output/images/openipc.gk7102s-br.tgz" | ||||
|           echo "ARCHIVE_FW=$ARCHIVE_FW" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE | ||||
|           make PLATFORM=goke BOARD=unknown_unknown_gk7102s_openipc all | ||||
|           [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) -gt 2097152 ]] && echo "TG_NOTIFY=Warning, kernel size exceeded : $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/uImage) vs 2097152... GK7102S" >> $GITHUB_ENV && exit 1 | ||||
|           [[ $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) -gt 5242880 ]] && echo "TG_NOTIFY=Warning, rootfs size exceeded - $(stat --printf="%s" ${GITHUB_WORKSPACE}/output/images/rootfs.squashfs) vs 5242880... GK7102S" >> $GITHUB_ENV && exit 1 | ||||
|           cd ${GITHUB_WORKSPACE}/output/images | ||||
|           mv uImage uImage.gk7102s | ||||
|           mv rootfs.squashfs rootfs.squashfs.gk7102s | ||||
|           tar -C ${GITHUB_WORKSPACE}/output/images -cvzf $ARCHIVE_FW rootfs.squashfs.fh8856 uImage.gk7102s | ||||
| 
 | ||||
|       - name: Build GK7102S SDK | ||||
|         id: build-gk7102s-sdk | ||||
|         continue-on-error: true | ||||
|         run: | | ||||
|           ARCHIVE_SDK="${GITHUB_WORKSPACE}/output/images/arm-openipc-linux-musleabi_sdk-buildroot.tar.gz" | ||||
|           echo "ARCHIVE_SDK=$ARCHIVE_SDK" >> $GITHUB_ENV | ||||
|           cd $GITHUB_WORKSPACE/output | ||||
|           make sdk | ||||
| 
 | ||||
|       - name: Send error message to telegram channel | ||||
|         env: | ||||
|           TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }} | ||||
|           TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }} | ||||
|         if: steps.build-gk7102s-firmware.outcome != 'success' || steps.build-gk7102s-sdk.outcome != 'success' | ||||
|         run: | | ||||
|           TG_OPTIONS="-s --connect-timeout 30 --max-time 30" | ||||
|           TG_NOTIFY="${TG_NOTIFY:=Warning, Buildroot compiling error... GK7102S}" | ||||
|           TG_HEADER=$(echo -e "\r\n$TG_NOTIFY \r\n\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH_NAME \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9A\xA0 GitHub Actions") | ||||
|           curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendMessage \ | ||||
|             -F chat_id=$TG_CHANNEL -F text="$TG_HEADER" | ||||
|           exit 2 | ||||
| 
 | ||||
|       - name: Create release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: actions/create-release@v1 | ||||
|         continue-on-error: true | ||||
|         env: | ||||
|           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||
|         with: | ||||
|           tag_name: ${{ env.TAG_NAME }} | ||||
|           release_name: ${{ env.RELEASE_NAME }} | ||||
|           draft: false | ||||
|           prerelease: ${{ env.PRERELEASE }} | ||||
| 
 | ||||
|       - name: Upload NOR FW to release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: svenstaro/upload-release-action@v2 | ||||
|         continue-on-error: true | ||||
|         with: | ||||
|           repo_token: ${{ secrets.GITHUB_TOKEN }} | ||||
|           file: ${{ env.ARCHIVE_FW }} | ||||
|           asset_name: "openipc.gk7102s-br.tgz" | ||||
|           tag: ${{ env.TAG_NAME }} | ||||
|           overwrite: true | ||||
| 
 | ||||
|       - name: Upload SDK to release | ||||
|         if: ${{ !env.ACT }} | ||||
|         uses: svenstaro/upload-release-action@v2 | ||||
|         continue-on-error: true | ||||
|         with: | ||||
|           repo_token: ${{ secrets.GITHUB_TOKEN }} | ||||
|           file: ${{ env.ARCHIVE_SDK }} | ||||
|           asset_name: "arm-openipc-gk7102s-linux-musleabi_sdk-buildroot.tar.gz" | ||||
|           tag: ${{ env.TAG_NAME }} | ||||
|           overwrite: true | ||||
| 
 | ||||
|       - name: Send binary file to telegram channel | ||||
|         if: ${{ !env.ACT }} | ||||
|         env: | ||||
|           TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }} | ||||
|           TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }} | ||||
|         run: | | ||||
|           TG_OPTIONS="-s --connect-timeout 30 --max-time 30" | ||||
|           TG_HEADER=$(echo -e "\r\nCommit: $GIT_HASH \r\nBranch: $BRANCH_NAME \r\nTag: $TAG_NAME \r\n\r\n\xE2\x9C\x85 GitHub Actions") | ||||
|           curl $TG_OPTIONS -H "Content-Type: multipart/form-data" -X POST https://api.telegram.org/bot$TG_TOKEN/sendDocument \ | ||||
|             -F chat_id=$TG_CHANNEL -F document="@$ARCHIVE_FW" -F caption="$TG_HEADER" | ||||
|  | @ -34,6 +34,8 @@ jobs: | |||
|           - hi3516cv300 | ||||
|           - hi3516cv500 | ||||
|           - hi3516ev200 | ||||
|           - ak3918ev300 | ||||
|           - gk7102 | ||||
| 
 | ||||
|     steps: | ||||
| 
 | ||||
|  | @ -172,6 +174,24 @@ jobs: | |||
|             release: fpv | ||||
|           - platform: gk7205v300 | ||||
|             release: fpv | ||||
| 
 | ||||
|           # TODO | ||||
|           - platform: ak3916ev300 | ||||
|             release: lite | ||||
|             todo: true | ||||
|           - platform: ak3918ev200 | ||||
|             release: lite | ||||
|             todo: true | ||||
|           - platform: ak3918ev300 | ||||
|             release: lite | ||||
|             todo: true | ||||
|           - platform: gk7102 | ||||
|             release: lite | ||||
|             todo: true | ||||
|           - platform: gk7102s | ||||
|             release: lite | ||||
|             todo: true | ||||
| 
 | ||||
|         exclude: | ||||
|           - platform: hi3516dv200 | ||||
|             release: ultimate | ||||
|  | @ -335,7 +355,7 @@ jobs: | |||
|           exit 2 | ||||
| 
 | ||||
|       - name: Create release | ||||
|         if: ${{ !env.ACT && github.event_name != 'pull_request' }} | ||||
|         if: ${{ !env.ACT && github.event_name != 'pull_request' && !matrix.todo }} | ||||
|         uses: actions/create-release@v1 | ||||
|         continue-on-error: true | ||||
|         env: | ||||
|  | @ -347,7 +367,7 @@ jobs: | |||
|           prerelease: ${{ env.PRERELEASE }} | ||||
| 
 | ||||
|       - name: Upload NOR FW to release | ||||
|         if: ${{ !env.ACT && github.event_name != 'pull_request' }} | ||||
|         if: ${{ !env.ACT && github.event_name != 'pull_request' && !matrix.todo }} | ||||
|         uses: svenstaro/upload-release-action@v2 | ||||
|         with: | ||||
|           repo_token: ${{ secrets.GITHUB_TOKEN }} | ||||
|  | @ -357,7 +377,7 @@ jobs: | |||
|           overwrite: true | ||||
| 
 | ||||
|       - name: Upload NAND FW to release | ||||
|         if: ${{ !env.ACT && github.event_name != 'pull_request' && env.HAS_NAND == 'y' }} | ||||
|         if: ${{ !env.ACT && github.event_name != 'pull_request' && env.HAS_NAND == 'y' && !matrix.todo }} | ||||
|         uses: svenstaro/upload-release-action@v2 | ||||
|         with: | ||||
|           repo_token: ${{ secrets.GITHUB_TOKEN }} | ||||
|  | @ -367,7 +387,7 @@ jobs: | |||
|           overwrite: true | ||||
| 
 | ||||
|       - name: Send binary file to telegram channel | ||||
|         if: ${{ !env.ACT && github.event_name != 'pull_request' }} | ||||
|         if: ${{ !env.ACT && github.event_name != 'pull_request' && !matrix.todo }} | ||||
|         env: | ||||
|           TG_TOKEN: ${{ secrets.TELEGRAM_TOKEN_BOT_OPENIPC }} | ||||
|           TG_CHANNEL: ${{ secrets.TELEGRAM_CHANNEL_OPENIPC_DEV }} | ||||
|  | @ -0,0 +1 @@ | |||
| ../../../../../patches/linux/3.4.x/gcc8_err_encountered.patch | ||||
|  | @ -0,0 +1 @@ | |||
| ../../../../../patches/linux/3.4.x/gcc8_err_encountered.patch | ||||
|  | @ -0,0 +1 @@ | |||
| ../../../../../patches/linux/3.4.x/gcc8_err_encountered.patch | ||||
|  | @ -1,5 +1,7 @@ | |||
| #!/bin/bash | ||||
| 
 | ||||
| set -e | ||||
| 
 | ||||
| function log() { | ||||
|     echo "--- $@" | ||||
| } | ||||
|  | @ -8,7 +10,7 @@ function apply_patch() { | |||
|     DST=$1 | ||||
|     SRC=$2 | ||||
| 
 | ||||
|     if [[ -d $SRC ]]; then | ||||
|     if [[ -d "$SRC" ]]; then | ||||
|         if [[ ${SRC:${#SRC}-1} != '/' ]]; then | ||||
|             log Apply \"$SRC\" as overlay directory | ||||
|             cp -r $SRC/* $DST/ | ||||
|  | @ -19,9 +21,11 @@ function apply_patch() { | |||
|             done | ||||
|         fi | ||||
|     else | ||||
|         if [[ -f "$SRC" ]]; then | ||||
|             log Apply \"$SRC\" as single patch | ||||
|             patch -d $DST -p1 <$SRC | ||||
|         fi | ||||
|     fi | ||||
| } | ||||
| 
 | ||||
| function apply_patches() { | ||||
|  | @ -35,10 +39,10 @@ function apply_patches() { | |||
| DST=$1 | ||||
| shift | ||||
| 
 | ||||
| if [ -f $DST/.anyka-patched ]; then | ||||
| if [ -f $DST/.already-patched ]; then | ||||
|     log Patched already | ||||
|     exit | ||||
| fi | ||||
| 
 | ||||
| apply_patches $@ | ||||
| touch $DST/.anyka-patched | ||||
| touch $DST/.already-patched | ||||
|  |  | |||
|  | @ -1,5 +1,7 @@ | |||
| #!/bin/bash | ||||
| 
 | ||||
| set -e | ||||
| 
 | ||||
| function log() { | ||||
|     echo "--- $@" | ||||
| } | ||||
|  | @ -8,7 +10,7 @@ function apply_patch() { | |||
|     DST=$1 | ||||
|     SRC=$2 | ||||
| 
 | ||||
|     if [[ -d $SRC ]]; then | ||||
|     if [[ -d "$SRC" ]]; then | ||||
|         if [[ ${SRC:${#SRC}-1} != '/' ]]; then | ||||
|             log Apply \"$SRC\" as overlay directory | ||||
|             cp -r $SRC/* $DST/ | ||||
|  | @ -19,9 +21,11 @@ function apply_patch() { | |||
|             done | ||||
|         fi | ||||
|     else | ||||
|         if [[ -f "$SRC" ]]; then | ||||
|             log Apply \"$SRC\" as single patch | ||||
|             patch -d $DST -p1 <$SRC | ||||
|         fi | ||||
|     fi | ||||
| } | ||||
| 
 | ||||
| function apply_patches() { | ||||
|  | @ -35,10 +39,10 @@ function apply_patches() { | |||
| DST=$1 | ||||
| shift | ||||
| 
 | ||||
| if [ -f $DST/.goke-patched ]; then | ||||
| if [ -f $DST/.already-patched ]; then | ||||
|     log Patched already | ||||
|     exit | ||||
| fi | ||||
| 
 | ||||
| apply_patches $@ | ||||
| touch $DST/.goke-patched | ||||
| touch $DST/.already-patched | ||||
|  |  | |||
|  | @ -0,0 +1,26 @@ | |||
| This fixes kernel compilation errors on GCC >= 8.x on old 3.x kernels | ||||
| 
 | ||||
| https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85745 | ||||
| 
 | ||||
| --- a/arch/arm/include/asm/uaccess.h
 | ||||
| +++ b/arch/arm/include/asm/uaccess.h
 | ||||
| @@ -121,7 +121,7 @@
 | ||||
|  #define get_user(x,p)							\ | ||||
|  	({								\ | ||||
|  		unsigned long __limit = current_thread_info()->addr_limit - 1; \ | ||||
| -		register const typeof(*(p)) __user *__p asm("r0") = (p);\
 | ||||
| +		register typeof(*(p)) __user *__p asm("r0") = (p);\
 | ||||
|  		register unsigned long __r2 asm("r2");			\ | ||||
|  		register unsigned long __l asm("r1") = __limit;		\ | ||||
|  		register int __e asm("r0");				\ | ||||
| @@ -158,8 +158,8 @@
 | ||||
|  #define put_user(x,p)							\ | ||||
|  	({								\ | ||||
|  		unsigned long __limit = current_thread_info()->addr_limit - 1; \ | ||||
| -		register const typeof(*(p)) __r2 asm("r2") = (x);	\
 | ||||
| -		register const typeof(*(p)) __user *__p asm("r0") = (p);\
 | ||||
| +		register typeof(*(p)) __r2 asm("r2") = (x);	\
 | ||||
| +		register typeof(*(p)) __user *__p asm("r0") = (p);\
 | ||||
|  		register unsigned long __l asm("r1") = __limit;		\ | ||||
|  		register int __e asm("r0");				\ | ||||
|  		switch (sizeof(*(__p))) {				\ | ||||
		Loading…
	
		Reference in New Issue