弄错仓库路径了

This commit is contained in:
2024-08-30 16:37:20 +08:00
parent 00c233189f
commit c960e02e0c
2 changed files with 16 additions and 14 deletions
+12 -12
View File
@@ -33,15 +33,15 @@ jobs:
- name: Configure Base System - name: Configure Base System
run: | run: |
bash .github/workflows/configure-building-enviroment-base-system.sh amd64 bookworm $REPOSITORY bash .github/workflows/configure-building-enviroment-base-system.sh amd64 bookworm $REPOSITORY https://github.com/$GITHUB_REPOSITORY
- name: Building ${{ GITHUB.repository }} - name: Building ${{ GITHUB.repository }}
run: | run: |
env gitPath=$(basename $REPOSITORY) bash .github/workflows/run-command-in-chroot.sh dpkg-buildpackage -b env gitPath=$(basename $GITHUB_REPOSITORY) bash .github/workflows/run-command-in-chroot.sh dpkg-buildpackage -b
- name: Remove Debug Package - name: Remove Debug Package
run: | run: |
env gitPath=$(basename $REPOSITORY) bash .github/workflows/run-command-in-chroot.sh rm -rfv ../*dbg*.deb env gitPath=$(basename $GITHUB_REPOSITORY) bash .github/workflows/run-command-in-chroot.sh rm -rfv ../*dbg*.deb
- name: Pack tar - name: Pack tar
run: | run: |
@@ -78,15 +78,15 @@ jobs:
- name: Configure Base System - name: Configure Base System
run: | run: |
bash .github/workflows/configure-building-enviroment-base-system.sh arm64 bookworm $REPOSITORY bash .github/workflows/configure-building-enviroment-base-system.sh arm64 bookworm $REPOSITORY https://github.com/$GITHUB_REPOSITORY
- name: Building ${{ GITHUB.repository }} - name: Building ${{ GITHUB.repository }}
run: | run: |
env gitPath=$(basename $REPOSITORY) bash .github/workflows/run-command-in-chroot.sh dpkg-buildpackage -b env env gitPath=$(basename $GITHUB_REPOSITORY) bash .github/workflows/run-command-in-chroot.sh dpkg-buildpackage -b
- name: Remove Debug Package - name: Remove Debug Package
run: | run: |
env gitPath=$(basename $REPOSITORY) bash .github/workflows/run-command-in-chroot.sh rm -rfv ../*dbg*.deb env env gitPath=$(basename $GITHUB_REPOSITORY) bash .github/workflows/run-command-in-chroot.sh rm -rfv ../*dbg*.deb
- name: Pack tar - name: Pack tar
run: | run: |
@@ -122,15 +122,15 @@ jobs:
- name: Configure Base System - name: Configure Base System
run: | run: |
bash .github/workflows/configure-building-enviroment-base-system.sh mips64el bookworm $REPOSITORY bash .github/workflows/configure-building-enviroment-base-system.sh mips64el bookworm $REPOSITORY https://github.com/$GITHUB_REPOSITORY
- name: Building ${{ GITHUB.repository }} - name: Building ${{ GITHUB.repository }}
run: | run: |
env gitPath=$(basename $REPOSITORY) bash .github/workflows/run-command-in-chroot.sh dpkg-buildpackage -b env env gitPath=$(basename $GITHUB_REPOSITORY) bash .github/workflows/run-command-in-chroot.sh dpkg-buildpackage -b
- name: Remove Debug Package - name: Remove Debug Package
run: | run: |
env gitPath=$(basename $REPOSITORY) bash .github/workflows/run-command-in-chroot.sh rm -rfv ../*dbg*.deb env env gitPath=$(basename $GITHUB_REPOSITORY) bash .github/workflows/run-command-in-chroot.sh rm -rfv ../*dbg*.deb
- name: Pack tar - name: Pack tar
run: | run: |
@@ -165,15 +165,15 @@ jobs:
- name: Configure Base System - name: Configure Base System
run: | run: |
bash .github/workflows/configure-building-enviroment-base-system.sh loong64 unstable $REPOSITORY https://mirror.sjtu.edu.cn/debian-ports/ bash .github/workflows/configure-building-enviroment-base-system.sh loong64 unstable $REPOSITORY https://github.com/$GITHUB_REPOSITORY https://mirror.sjtu.edu.cn/debian-ports/
- name: Building ${{ GITHUB.repository }} - name: Building ${{ GITHUB.repository }}
run: | run: |
env gitPath=$(basename $REPOSITORY) bash .github/workflows/run-command-in-chroot.sh dpkg-buildpackage -b env env gitPath=$(basename $GITHUB_REPOSITORY) bash .github/workflows/run-command-in-chroot.sh dpkg-buildpackage -b
- name: Remove Debug Package - name: Remove Debug Package
run: | run: |
env gitPath=$(basename $REPOSITORY) bash .github/workflows/run-command-in-chroot.sh rm -rfv ../*dbg*.deb env env gitPath=$(basename $GITHUB_REPOSITORY) bash .github/workflows/run-command-in-chroot.sh rm -rfv ../*dbg*.deb
- name: Pack tar - name: Pack tar
run: | run: |
@@ -26,13 +26,15 @@ else
useDebianPort useDebianPort
fi fi
fi fi
sudo debootstrap --arch=$1 $2 $bottlePath $4 sudo debootstrap --arch=$1 $2 $bottlePath $5
sudo bash .github/workflows/pardus-chroot $bottlePath sudo bash .github/workflows/pardus-chroot $bottlePath
# 配置 git # 配置 git
sudo chroot $bottlePath apt update sudo chroot $bottlePath apt update
sudo chroot $bottlePath apt install git -y sudo chroot $bottlePath apt install git -y
sudo chroot $bottlePath git clone $3 --depth=1 sudo chroot $bottlePath git clone $3 --depth=1
sudo chroot $bottlePath git clone $4 --depth=1
sudo mv $bottlePath/$(basename $3)/.github/workflows/* $bottlePath/$(basename $4)/.github/workflows -v
# 修改版本号 # 修改版本号
#sudo sed -i "s/) UNRELEASED; urgency=medium/~$2) UNRELEASED; urgency=medium/g" $bottlePath/deep-wine-runner-qemu-system/debian/changelog #sudo sed -i "s/) UNRELEASED; urgency=medium/~$2) UNRELEASED; urgency=medium/g" $bottlePath/deep-wine-runner-qemu-system/debian/changelog
env gitPath=$(basename $3) bash .github/workflows/run-command-in-chroot.sh .github/workflows/configure-building-enviroment.sh env gitPath=$(basename $4) bash .github/workflows/run-command-in-chroot.sh .github/workflows/configure-building-enviroment.sh
exit 0 exit 0