mirror of https://github.com/OpenIPC/firmware.git
Workflow: update settings
parent
47344e68b4
commit
7e59320972
|
@ -1,10 +1,8 @@
|
||||||
name: build
|
name: build
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
branches:
|
||||||
- synchronize
|
- master
|
||||||
- reopened
|
|
||||||
- opened
|
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
@ -14,7 +12,7 @@ env:
|
||||||
TAG_NAME: latest
|
TAG_NAME: latest
|
||||||
TG_TOKEN: ${{secrets.TELEGRAM_TOKEN_BOT_OPENIPC}}
|
TG_TOKEN: ${{secrets.TELEGRAM_TOKEN_BOT_OPENIPC}}
|
||||||
TG_CHANNEL: ${{secrets.TELEGRAM_CHANNEL_OPENIPC_DEV}}
|
TG_CHANNEL: ${{secrets.TELEGRAM_CHANNEL_OPENIPC_DEV}}
|
||||||
TG_OPTIONS: --connect-timeout 30 --retry 10 --http1.1 -o /dev/null -w %{http_code}
|
TG_OPTIONS: -s -o /dev/null -w %{http_code}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
buildroot:
|
buildroot:
|
||||||
|
@ -206,7 +204,7 @@ jobs:
|
||||||
path: /tmp/ccache
|
path: /tmp/ccache
|
||||||
key: ${{matrix.platform}}_${{matrix.release}}
|
key: ${{matrix.platform}}_${{matrix.release}}
|
||||||
|
|
||||||
- name: Download source
|
- name: Download files
|
||||||
run: |
|
run: |
|
||||||
echo "8.8.8.8 invisible-mirror.net" | sudo tee -a /etc/hosts
|
echo "8.8.8.8 invisible-mirror.net" | sudo tee -a /etc/hosts
|
||||||
echo "8.8.8.8 distfiles.dereferenced.org" | sudo tee -a /etc/hosts
|
echo "8.8.8.8 distfiles.dereferenced.org" | sudo tee -a /etc/hosts
|
||||||
|
@ -246,6 +244,15 @@ jobs:
|
||||||
${{env.NORFW}}
|
${{env.NORFW}}
|
||||||
${{env.NANDFW}}
|
${{env.NANDFW}}
|
||||||
|
|
||||||
|
- name: Send binary
|
||||||
|
if: github.event_name != 'pull_request' && matrix.custom != 'onlyci' && env.NORFW
|
||||||
|
run: |
|
||||||
|
TG_MSG="Commit: ${GIT_HASH}\nBranch: ${GIT_BRANCH}\nTag: ${TAG_NAME}\nTime: ${TIME}\n\n"
|
||||||
|
TG_ICON="\xE2\x9C\x85 GitHub Actions"
|
||||||
|
TG_HEADER=$(echo -e ${TG_MSG}${TG_ICON})
|
||||||
|
HTTP=$(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 caption="${TG_HEADER}" -F document=@${NORFW})
|
||||||
|
echo Telegram response: ${HTTP}
|
||||||
|
|
||||||
- name: Send error
|
- name: Send error
|
||||||
if: github.event_name != 'pull_request' && failure()
|
if: github.event_name != 'pull_request' && failure()
|
||||||
run: |
|
run: |
|
||||||
|
@ -255,13 +262,3 @@ jobs:
|
||||||
TG_HEADER=$(echo -e ${TG_WARN}${TG_MSG}${TG_ICON})
|
TG_HEADER=$(echo -e ${TG_WARN}${TG_MSG}${TG_ICON})
|
||||||
HTTP=$(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}")
|
HTTP=$(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}")
|
||||||
echo Telegram response: ${HTTP}
|
echo Telegram response: ${HTTP}
|
||||||
exit 2
|
|
||||||
|
|
||||||
- name: Send binary
|
|
||||||
if: github.event_name != 'pull_request' && matrix.custom != 'onlyci' && env.NORFW
|
|
||||||
run: |
|
|
||||||
TG_MSG="Commit: ${GIT_HASH}\nBranch: ${GIT_BRANCH}\nTag: ${TAG_NAME}\nTime: ${TIME}\n\n"
|
|
||||||
TG_ICON="\xE2\x9C\x85 GitHub Actions"
|
|
||||||
TG_HEADER=$(echo -e ${TG_MSG}${TG_ICON})
|
|
||||||
HTTP=$(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 caption="${TG_HEADER}" -F document=@${NORFW})
|
|
||||||
echo Telegram response: ${HTTP}
|
|
||||||
|
|
|
@ -49,6 +49,8 @@ jobs:
|
||||||
- name: Build toolchain
|
- name: Build toolchain
|
||||||
run: |
|
run: |
|
||||||
echo "8.8.8.8 invisible-mirror.net" | sudo tee -a /etc/hosts
|
echo "8.8.8.8 invisible-mirror.net" | sudo tee -a /etc/hosts
|
||||||
|
echo "8.8.8.8 distfiles.dereferenced.org" | sudo tee -a /etc/hosts
|
||||||
|
|
||||||
CONFIG=$(find br-ext-chip-* -name ${{matrix.platform}}_lite_defconfig)
|
CONFIG=$(find br-ext-chip-* -name ${{matrix.platform}}_lite_defconfig)
|
||||||
GCC=$(make BOARD=${CONFIG} toolname)
|
GCC=$(make BOARD=${CONFIG} toolname)
|
||||||
echo GCC=${GCC} >> ${GITHUB_ENV}
|
echo GCC=${GCC} >> ${GITHUB_ENV}
|
||||||
|
|
Loading…
Reference in New Issue