more work on build
This commit is contained in:
parent
aa39f44f71
commit
c224411279
3 changed files with 45 additions and 6 deletions
17
.github/workflows/complib-package.yml
vendored
17
.github/workflows/complib-package.yml
vendored
|
@ -43,3 +43,20 @@ jobs:
|
|||
ref: 'refs/tags/v${{steps.next_semantic_version.outputs.version}}',
|
||||
sha: context.sha
|
||||
})
|
||||
- name: Install fpm
|
||||
run: apk add ruby && gem install fpm
|
||||
- name: Build complib deb Package
|
||||
env:
|
||||
VERSION: v${{steps.next_semantic_version.outputs.version}}
|
||||
run: bash ./build.sh # creates packages in "output" directory
|
||||
- name: Pushes to another repository
|
||||
uses: cpina/github-action-push-to-another-repository@main
|
||||
env:
|
||||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
||||
with:
|
||||
source-directory: 'output'
|
||||
target-directory: 'debs/complib/'
|
||||
destination-github-username: 'F-WuTS'
|
||||
destination-repository-name: 'compREP-dev'
|
||||
user-email: joel.klimont@comp-air.at
|
||||
target-branch: master
|
||||
|
|
8
build.sh
Normal file
8
build.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
mkdir output
|
||||
|
||||
cd client_s2
|
||||
./build_deb.sh
|
||||
echo "Ran build deb, created: $DEB"
|
||||
mv $DEB ../output
|
|
@ -1,6 +1,15 @@
|
|||
##!/usr/bin/zsh
|
||||
#!/usr/bin/bash
|
||||
|
||||
export PYTHONDONTWRITEBYTECODE=1
|
||||
export VERSION="1.0.0"
|
||||
|
||||
# set to 1 for debugging
|
||||
export EXTRACT_PKG="0"
|
||||
|
||||
if [[ -z $VERSION ]]; then
|
||||
echo "Warning, setting VERSION env var to default value v1.0.0-1"
|
||||
export VERSION="v1.0.0-0"
|
||||
fi
|
||||
echo "Building Package version: $VERSION"
|
||||
|
||||
# BE CAREFUL TO NOT BUILD IN A PYTHON VENV! wasd
|
||||
|
||||
|
@ -35,10 +44,15 @@ fpm -s python --python-bin python3 --python-pip pip3 --python-package-name-prefi
|
|||
-d "ffmpeg" \
|
||||
-v $VERSION -t deb setup.py
|
||||
|
||||
mkdir build_extract
|
||||
mv python3-complib_"$VERSION"_all.deb build_extract
|
||||
cd build_extract
|
||||
ar -xv python3-complib_"$VERSION"_all.deb
|
||||
if [ "$EXTRACT_PKG" == "1" ]; then
|
||||
mkdir build_extract
|
||||
mv python3-complib_"$VERSION"_all.deb build_extract
|
||||
cd build_extract
|
||||
ar -xv python3-complib_"$VERSION"_all.deb
|
||||
fi
|
||||
|
||||
export DEB=python3-complib_"$VERSION"_all.deb
|
||||
echo "Created: $DEB"
|
||||
|
||||
# --deb-changelog changelog \
|
||||
# --deb-upstream-changelog changelog \
|
||||
|
|
Reference in a new issue