Skip to content

Commit

Permalink
停止ubuntu的构建
Browse files Browse the repository at this point in the history
  • Loading branch information
gfdgd-xi committed Nov 6, 2024
1 parent f06089d commit 2180a04
Showing 1 changed file with 44 additions and 44 deletions.
88 changes: 44 additions & 44 deletions .github/workflows/building-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,48 +295,48 @@ jobs:
sshpass -p "$UPASSWD" ssh $UUSERS@$UHOST -p $UPORT $UPROGRAM tianlu $UPATH/$tarName > /dev/null
fi
amd64-ubuntu24:
runs-on: ubuntu-24.04
steps:
- name: Clone Repository To Get Script
run: |
git clone $REPOSITORY --depth=1
mv $(basename $REPOSITORY)/* . -v
mv $(basename $REPOSITORY)/.* . -v | true
- name: Configure Base System
run: |
git clone https://github.com/$GITHUB_REPOSITORY
cd $(basename $GITHUB_REPOSITORY)
sudo bash ../.github/workflows/configure-building-enviroment.sh
- name: Building ${{ GITHUB.repository }}
run: |
cd $(basename $GITHUB_REPOSITORY)
env GO111MODULE=off dpkg-buildpackage -b
- name: Remove Debug Package
run: |
rm -rfv *dbg*.deb
- name: Pack tar
run: |
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 hetao $UPATH/$tarName > /dev/null
# amd64-ubuntu24:
# runs-on: ubuntu-24.04
# steps:
# - name: Clone Repository To Get Script
# run: |
# git clone $REPOSITORY --depth=1
# mv $(basename $REPOSITORY)/* . -v
# mv $(basename $REPOSITORY)/.* . -v | true
#
# - name: Configure Base System
# run: |
# git clone https://github.com/$GITHUB_REPOSITORY
# cd $(basename $GITHUB_REPOSITORY)
# sudo bash ../.github/workflows/configure-building-enviroment.sh
#
# - name: Building ${{ GITHUB.repository }}
# run: |
# cd $(basename $GITHUB_REPOSITORY)
# env GO111MODULE=off dpkg-buildpackage -b
#
# - name: Remove Debug Package
# run: |
# rm -rfv *dbg*.deb
#
# - name: Pack tar
# run: |
# 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 hetao $UPATH/$tarName > /dev/null

0 comments on commit 2180a04

Please sign in to comment.