mirror of
https://github.com/nikdoof/builder.git
synced 2025-12-13 23:52:17 +00:00
Update workflow
This commit is contained in:
14
.github/workflows/master.yml
vendored
14
.github/workflows/master.yml
vendored
@@ -24,7 +24,6 @@ jobs:
|
||||
- t21_lite_wansview-q5-1080p
|
||||
- t31_lite_xiaomi-mjsxj03hl
|
||||
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
@@ -33,6 +32,7 @@ jobs:
|
||||
run: |
|
||||
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
|
||||
git clone https://github.com/openipc/firmware --depth 1
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
@@ -40,17 +40,19 @@ jobs:
|
||||
export GIT_BRANCH=${GITHUB_REF_NAME}
|
||||
|
||||
NAME=${{matrix.platform}}
|
||||
bash builder.sh ${NAME}
|
||||
cp -rf devices/${NAME}/* firmware
|
||||
cd firmware
|
||||
make BOARD=${NAME} all
|
||||
|
||||
NORFW=$(find ${GITHUB_WORKSPACE}/openipc/output/images -name openipc*nor*)
|
||||
NORFW=$(find output/images -name openipc*nor*)
|
||||
if [ ! -z ${NORFW} ]; then
|
||||
mv ${NORFW} ${NAME}-nor.tgz
|
||||
mv ${NORFW} ../${NAME}-nor.tgz
|
||||
echo NORFW=${GITHUB_WORKSPACE}/${NAME}-nor.tgz >> ${GITHUB_ENV}
|
||||
fi
|
||||
|
||||
NANDFW=$(find ${GITHUB_WORKSPACE}/openipc/output/images -name openipc*nand*)
|
||||
NANDFW=$(find output/images -name openipc*nand*)
|
||||
if [ ! -z ${NANDFW} ]; then
|
||||
mv ${NANDFW} ${NAME}-nand.tgz
|
||||
mv ${NANDFW} ../${NAME}-nand.tgz
|
||||
echo NANDFW=${GITHUB_WORKSPACE}/${NAME}-nand.tgz >> ${GITHUB_ENV}
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user