mirror of
https://github.com/GXDE-OS/GXDE.git
synced 2026-06-22 07:36:38 +08:00
新增滚动构建
This commit is contained in:
@@ -208,7 +208,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure Base System
|
- name: Configure Base System
|
||||||
run: |
|
run: |
|
||||||
bash .github/workflows/configure-building-enviroment-base-system.sh loong64 unstable $REPOSITORY https://packages.gxde.org/debian-loong64/
|
bash .github/workflows/configure-building-enviroment-base-system.sh loong64 unstable $REPOSITORY https://deb.debian.org/debian-ports/
|
||||||
#bash .github/workflows/configure-building-enviroment-base-system.sh loong64 unstable $REPOSITORY https://github.com/$GITHUB_REPOSITORY https://deb.debian.org/debian-ports/
|
#bash .github/workflows/configure-building-enviroment-base-system.sh loong64 unstable $REPOSITORY https://github.com/$GITHUB_REPOSITORY https://deb.debian.org/debian-ports/
|
||||||
|
|
||||||
- name: Building ${{ GITHUB.repository }}
|
- name: Building ${{ GITHUB.repository }}
|
||||||
|
|||||||
@@ -0,0 +1,123 @@
|
|||||||
|
name: Building GXDE Testing SID Package
|
||||||
|
run-name: Building SID ${{ GITHUB.REPOSITORY }}
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
secrets:
|
||||||
|
PASSWD:
|
||||||
|
required: true
|
||||||
|
USERS:
|
||||||
|
required: true
|
||||||
|
HOST:
|
||||||
|
required: true
|
||||||
|
UPATH:
|
||||||
|
required: true
|
||||||
|
UPROGRAM:
|
||||||
|
required: true
|
||||||
|
UPORT:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
REPOSITORY: https://github.com/GXDE-OS/GXDE
|
||||||
|
BOTTLEPATH: system-bottle
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
loong64:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
steps:
|
||||||
|
- name: Clone Repository To Get Script
|
||||||
|
run: |
|
||||||
|
#apt update
|
||||||
|
#apt install sudo git -y
|
||||||
|
git clone $REPOSITORY --depth=1
|
||||||
|
mv $(basename $REPOSITORY)/* . -v
|
||||||
|
mv $(basename $REPOSITORY)/.* . -v | true
|
||||||
|
|
||||||
|
- name: Configure Base System
|
||||||
|
run: |
|
||||||
|
bash .github/workflows/configure-building-enviroment-base-system.sh loong64 unstable $REPOSITORY https://github.com/$GITHUB_REPOSITORY https://deb.debian.org/debian-ports/
|
||||||
|
#bash .github/workflows/configure-building-enviroment-base-system.sh loong64 unstable $REPOSITORY https://github.com/$GITHUB_REPOSITORY https://deb.debian.org/debian-ports/
|
||||||
|
|
||||||
|
- name: Building ${{ GITHUB.repository }}
|
||||||
|
run: |
|
||||||
|
env gitPath=$(basename $GITHUB_REPOSITORY) bash .github/workflows/run-command-in-chroot.sh env GO111MODULE=off dpkg-buildpackage -b
|
||||||
|
|
||||||
|
- name: Remove Debug Package
|
||||||
|
run: |
|
||||||
|
env env gitPath=$(basename $GITHUB_REPOSITORY) bash .github/workflows/run-command-in-chroot.sh rm -rfv ../*dbg*.deb
|
||||||
|
|
||||||
|
- name: Pack tar
|
||||||
|
run: |
|
||||||
|
cd $BOTTLEPATH
|
||||||
|
sudo tar -cvf ../deb-$(date +%s).tar *.deb
|
||||||
|
|
||||||
|
- name: Push
|
||||||
|
env:
|
||||||
|
UPASSWD: ${{ secrets.PASSWD }}
|
||||||
|
UUSERS: ${{ secrets.USERS }}
|
||||||
|
UHOST: ${{ secrets.HOST }}
|
||||||
|
UPATH: ${{ secrets.UPATH }}
|
||||||
|
UPROGRAM: ${{ secrets.UPROGRAM }}
|
||||||
|
UPORT: ${{ secrets.UPORT }}
|
||||||
|
run: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install sshpass -y
|
||||||
|
mkdir -p ~/.ssh/
|
||||||
|
ssh-keyscan -p $UPORT -H $UHOST >> ~/.ssh/known_hosts
|
||||||
|
tarName=$(ls | grep .tar | head -n 1)
|
||||||
|
sshpass -p "$UPASSWD" rsync -e "ssh -p $UPORT" $tarName $UUSERS@$UHOST:$UPATH
|
||||||
|
sshpass -p "$UPASSWD" ssh $UUSERS@$UHOST -p $UPORT $UPROGRAM tianlu $UPATH/$tarName > /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
riscv64:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
steps:
|
||||||
|
- name: Clone Repository To Get Script
|
||||||
|
run: |
|
||||||
|
#apt update
|
||||||
|
#apt install sudo git -y
|
||||||
|
git clone $REPOSITORY --depth=1
|
||||||
|
mv $(basename $REPOSITORY)/* . -v
|
||||||
|
mv $(basename $REPOSITORY)/.* . -v | true
|
||||||
|
|
||||||
|
- name: Configure Base System
|
||||||
|
run: |
|
||||||
|
bash .github/workflows/configure-building-enviroment-base-system.sh riscv64 sid $REPOSITORY https://github.com/$GITHUB_REPOSITORY
|
||||||
|
|
||||||
|
- name: Building ${{ GITHUB.repository }}
|
||||||
|
run: |
|
||||||
|
set +e
|
||||||
|
env gitPath=$(basename $GITHUB_REPOSITORY) bash .github/workflows/run-command-in-chroot.sh env GO111MODULE=off dpkg-buildpackage -b
|
||||||
|
|
||||||
|
- name: Remove Debug Package
|
||||||
|
run: |
|
||||||
|
set +e
|
||||||
|
env env gitPath=$(basename $GITHUB_REPOSITORY) bash .github/workflows/run-command-in-chroot.sh rm -rfv ../*dbg*.deb
|
||||||
|
|
||||||
|
- name: Pack tar
|
||||||
|
run: |
|
||||||
|
set +e
|
||||||
|
cd $BOTTLEPATH
|
||||||
|
sudo tar -cvf ../deb-$(date +%s).tar *.deb
|
||||||
|
|
||||||
|
- name: Push
|
||||||
|
env:
|
||||||
|
UPASSWD: ${{ secrets.PASSWD }}
|
||||||
|
UUSERS: ${{ secrets.USERS }}
|
||||||
|
UHOST: ${{ secrets.HOST }}
|
||||||
|
UPATH: ${{ secrets.UPATH }}
|
||||||
|
UPROGRAM: ${{ secrets.UPROGRAM }}
|
||||||
|
UPORT: ${{ secrets.UPORT }}
|
||||||
|
run: |
|
||||||
|
set +e
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install sshpass -y
|
||||||
|
mkdir -p ~/.ssh/
|
||||||
|
ssh-keyscan -p $UPORT -H $UHOST >> ~/.ssh/known_hosts
|
||||||
|
tarName=$(ls | grep .tar | head -n 1)
|
||||||
|
if [[ $tarName != "" ]]; then
|
||||||
|
sshpass -p "$UPASSWD" rsync -e "ssh -p $UPORT" $tarName $UUSERS@$UHOST:$UPATH > /dev/null
|
||||||
|
sshpass -p "$UPASSWD" ssh $UUSERS@$UHOST -p $UPORT $UPROGRAM tianlu $UPATH/$tarName > /dev/null
|
||||||
|
fi
|
||||||
|
|
||||||
@@ -209,7 +209,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure Base System
|
- name: Configure Base System
|
||||||
run: |
|
run: |
|
||||||
bash .github/workflows/configure-building-enviroment-base-system.sh loong64 unstable $REPOSITORY https://github.com/$GITHUB_REPOSITORY https://packages.gxde.org/debian-loong64/
|
bash .github/workflows/configure-building-enviroment-base-system.sh loong64 unstable $REPOSITORY https://github.com/$GITHUB_REPOSITORY https://deb.debian.org/debian-ports/
|
||||||
#bash .github/workflows/configure-building-enviroment-base-system.sh loong64 unstable $REPOSITORY https://github.com/$GITHUB_REPOSITORY https://deb.debian.org/debian-ports/
|
#bash .github/workflows/configure-building-enviroment-base-system.sh loong64 unstable $REPOSITORY https://github.com/$GITHUB_REPOSITORY https://deb.debian.org/debian-ports/
|
||||||
|
|
||||||
- name: Building ${{ GITHUB.repository }}
|
- name: Building ${{ GITHUB.repository }}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
name: Building Testing
|
name: Building Program
|
||||||
run-name: Building ${{ GITHUB.REPOSITORY }}
|
run-name: Building ${{ GITHUB.REPOSITORY }}
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ else
|
|||||||
echo "deb [trusted=true] https://repo1.gxde.top/gxde-os/bixie ./" >> /etc/apt/sources.list.d/gxde-os.list
|
echo "deb [trusted=true] https://repo1.gxde.top/gxde-os/bixie ./" >> /etc/apt/sources.list.d/gxde-os.list
|
||||||
fi
|
fi
|
||||||
if [[ $(dpkg --print-architecture) == "loong64" ]]; then
|
if [[ $(dpkg --print-architecture) == "loong64" ]]; then
|
||||||
echo "deb [trusted=true] https://packages.gxde.org/debian-loong64/ unreleased main" > /etc/apt/sources.list.d/debian-unreleased.list
|
echo "deb [trusted=true] https://deb.debian.org/debian-ports/ unreleased main" > /etc/apt/sources.list.d/debian-unreleased.list
|
||||||
fi
|
fi
|
||||||
apt install debian-ports-archive-keyring debian-archive-keyring -y
|
apt install debian-ports-archive-keyring debian-archive-keyring -y
|
||||||
for i in {1..8};
|
for i in {1..8};
|
||||||
|
|||||||
Reference in New Issue
Block a user