Update .forgejo/workflows/dmsbg-100.yml
Some checks failed
/ build-and-publish (push) Failing after 22m22s
Some checks failed
/ build-and-publish (push) Failing after 22m22s
This commit is contained in:
parent
2ebc1fb259
commit
596ab77c06
1 changed files with 35 additions and 22 deletions
|
@ -29,50 +29,63 @@ jobs:
|
||||||
fi
|
fi
|
||||||
echo "TAG_REF=${TAG_REF}" >> $GITHUB_ENV
|
echo "TAG_REF=${TAG_REF}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout difos repo
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Install Dependencies
|
|
||||||
run: |
|
run: |
|
||||||
export PATH=$PATH:/usr/local/bin
|
if [ -d "/opt/difos/.git" ]; then
|
||||||
node -v
|
cd /opt/difos
|
||||||
npm -v
|
git reset --hard
|
||||||
pkg -v
|
git clean -fd
|
||||||
apt-get update
|
git pull origin master
|
||||||
apt-get install -y build-essential clang flex bison g++ gawk gcc-multilib g++-multilib gettext libncurses-dev libssl-dev python3-distutils rsync unzip zlib1g-dev file wget python3-setuptools swig
|
else
|
||||||
|
git clone https://$GIT_PAT:x-oauth-basic@git.difuse.io/Difuse/difos.git /opt/difos
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Checkout difos-files repo
|
||||||
|
run: |
|
||||||
|
if [ -d "/opt/difos-files/.git" ]; then
|
||||||
|
cd /opt/difos-files
|
||||||
|
git reset --hard
|
||||||
|
git clean -fd
|
||||||
|
git pull origin master
|
||||||
|
else
|
||||||
|
git clone https://$GIT_PAT:x-oauth-basic@git.difuse.io/Difuse/difos-files.git /opt/difos-files
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Add Custom Files
|
- name: Add Custom Files
|
||||||
run: |
|
run: |
|
||||||
echo $GIT_PAT
|
cd /opt/difos-files
|
||||||
git clone https://$GIT_PAT:x-oauth-basic@git.difuse.io/Difuse/difos-files.git
|
./setup-all.sh /opt/difos $GIT_PAT
|
||||||
cd difos-files
|
|
||||||
./setup-all.sh ${{ github.workspace }} $GIT_PAT
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
cd /opt/difos
|
||||||
|
rm -f .config
|
||||||
./scripts/feeds update -a
|
./scripts/feeds update -a
|
||||||
./scripts/feeds install -a
|
./scripts/feeds install -a
|
||||||
cp -rf configs/dmsbg100.config .config
|
cp -rf configs/dmsbg100.config .config
|
||||||
make defconfig
|
make defconfig
|
||||||
FORCE_UNSAFE_CONFIGURE=1 CONFIG_TARGET_ROOTFS_INITRAMFS=n make clean -j16
|
FORCE_UNSAFE_CONFIGURE=1 CONFIG_TARGET_ROOTFS_INITRAMFS=n make clean -j4
|
||||||
FORCE_UNSAFE_CONFIGURE=1 CONFIG_TARGET_ROOTFS_INITRAMFS=n make download -j16
|
FORCE_UNSAFE_CONFIGURE=1 CONFIG_TARGET_ROOTFS_INITRAMFS=n make download -j4
|
||||||
FORCE_UNSAFE_CONFIGURE=1 CONFIG_TARGET_ROOTFS_INITRAMFS=n make world -j16
|
FORCE_UNSAFE_CONFIGURE=1 CONFIG_TARGET_ROOTFS_INITRAMFS=n make world -j4
|
||||||
|
|
||||||
- name: Publish Packages to Portal
|
- name: Publish Packages to Portal
|
||||||
run: |
|
run: |
|
||||||
difosDir='.'
|
difosDir='/opt/difos'
|
||||||
cd $difosDir
|
cd $difosDir
|
||||||
folder_name=opkg-v$TAG_REF-$ENVIRONMENT
|
folder_name=opkg-v$TAG_REF-$ENVIRONMENT
|
||||||
mkdir -p $folder_name
|
mkdir -p $folder_name
|
||||||
cp -rf ./bin/packages/aarch64_cortex-a53/* $folder_name/
|
cp -rf ./bin/packages/aarch64_cortex-a53/* $folder_name/
|
||||||
tar -czvf $folder_name.tar.gz $folder_name
|
tar -czvf $folder_name.tar.gz $folder_name
|
||||||
curl -L -X POST -H 'Content-Type: multipart/form-data' -F "file=@$folder_name.tar.gz" https://$PORTAL_ENDPOINT/software/upload/opkg/${{ env.PORTAL_API_KEY }}
|
# curl -L -X POST -H 'Content-Type: multipart/form-data' -F "file=@$folder_name.tar.gz" https://$PORTAL_ENDPOINT/software/upload/opkg/${{ env.PORTAL_API_KEY }}
|
||||||
|
echo "Would have uploaded $folder_name.tar.gz to portal"
|
||||||
|
|
||||||
- name: Publish Release
|
- name: Publish Release
|
||||||
run: |
|
run: |
|
||||||
difosDir='.'
|
difosDir='/opt/difos'
|
||||||
cd $difosDir
|
cd $difosDir
|
||||||
sdFile=$(find ./bin/ -name "*difos*" | grep sdcard | head -n1)
|
sdFile=$(find ./bin/ -name "*difos*" | grep sdcard | head -n1)
|
||||||
sqFile=$(find ./bin/ -name "*difos*" | grep squash | head -n1)
|
sqFile=$(find ./bin/ -name "*difos*" | grep squash | head -n1)
|
||||||
curl -L -X POST -H 'Content-Type: multipart/form-data' -F "file=@$sdFile" https://$PORTAL_ENDPOINT/software/upload/sd/$ENVIRONMENT/${{ env.PORTAL_API_KEY }}
|
# curl -L -X POST -H 'Content-Type: multipart/form-data' -F "file=@$sdFile" https://$PORTAL_ENDPOINT/software/upload/sd/$ENVIRONMENT/${{ env.PORTAL_API_KEY }}
|
||||||
curl -L -X POST -H 'Content-Type: multipart/form-data' -F "file=@$sqFile" https://$PORTAL_ENDPOINT/software/upload/sysupgrade/$ENVIRONMENT/${{ env.PORTAL_API_KEY }}
|
echo "Would have uploaded $sdFile to portal"
|
||||||
|
# curl -L -X POST -H 'Content-Type: multipart/form-data' -F "file=@$sqFile" https://$PORTAL_ENDPOINT/software/upload/sysupgrade/$ENVIRONMENT/${{ env.PORTAL_API_KEY }}
|
||||||
|
echo "Would have uploaded $sqFile to portal"
|
Loading…
Reference in a new issue