Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorxda committed Dec 4, 2023
1 parent 6de19f9 commit cdbdd03
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ jobs:
- ssc335de_lite_uniview-c1l-2wn-g-ru
- t21_lite_wansview-q5-1080p
- t31_lite_xiaomi-mjsxj03hl


steps:
- name: Checkout
Expand All @@ -33,24 +32,27 @@ 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: |
export GIT_HASH=$(git rev-parse --short ${GITHUB_SHA})
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
Expand Down

0 comments on commit cdbdd03

Please sign in to comment.