Remove deb build from github actions
This commit is contained in:
parent
4dd3f9fd34
commit
1f596ed5b8
1 changed files with 0 additions and 59 deletions
59
.github/workflows/ci.yml
vendored
59
.github/workflows/ci.yml
vendored
|
|
@ -175,62 +175,3 @@ jobs:
|
||||||
run: ./start.sh
|
run: ./start.sh
|
||||||
- name: run test r-y
|
- name: run test r-y
|
||||||
run: sudo docker exec -t clixon-test bash -c 'cd /usr/local/bin/test && detail=true pattern="test_r*.sh" ./sum.sh'
|
run: sudo docker exec -t clixon-test bash -c 'cd /usr/local/bin/test && detail=true pattern="test_r*.sh" ./sum.sh'
|
||||||
|
|
||||||
reset-run-number:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
run-number: ${{ steps.get-build.outputs.build-number }}
|
|
||||||
steps:
|
|
||||||
- name: Get build number and reset it
|
|
||||||
id: get-build
|
|
||||||
uses: mlilback/build-number@v1
|
|
||||||
with:
|
|
||||||
base: 0 # Update this number to reset counter
|
|
||||||
run-id: ${{ github.run_number }}
|
|
||||||
|
|
||||||
create_deb_packet:
|
|
||||||
needs: reset-run-number
|
|
||||||
#if: github.ref == 'refs/heads/master'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
VERSION: "7.1.0"
|
|
||||||
RUN_NUMBER: ${{ needs.reset-run-number.outputs.run-number }}
|
|
||||||
permissions: write-all
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
fetch-depth: 0
|
|
||||||
- name: create dir for build
|
|
||||||
run: mkdir ${{ github.workspace }}/build
|
|
||||||
- name: Install dependencies
|
|
||||||
run: sudo apt update && sudo apt install -y build-essential flex fakeroot bison lsb-release make debhelper libnghttp2-dev libssl-dev git
|
|
||||||
- name: Clone cligen
|
|
||||||
run: git clone https://github.com/clicon/cligen.git
|
|
||||||
- name: Install cligen
|
|
||||||
run: (cd cligen; ./configure; make; sudo make install)
|
|
||||||
- name: configure
|
|
||||||
run: ./configure
|
|
||||||
- name: make
|
|
||||||
run: make
|
|
||||||
- name: install
|
|
||||||
run: sudo make install
|
|
||||||
- name: configure
|
|
||||||
run: ./configure
|
|
||||||
- name: make
|
|
||||||
run: make
|
|
||||||
- name: install
|
|
||||||
run: sudo make install DESTDIR=${{ github.workspace }}/build
|
|
||||||
- name: copy file for build deb packet dev
|
|
||||||
run: cp -r ${{ github.workspace }}/debian ${{ github.workspace }}/build
|
|
||||||
- name: add change log
|
|
||||||
run: cd ${{ github.workspace }}/build/debian && export NAME_VERSION="clixon (${{env.VERSION}}-${{env.RUN_NUMBER}})" && git --no-pager log --no-walk --encoding=utf-8 --expand-tabs=4 --pretty=format:"${NAME_VERSION} stable; urgency=medium%n%n * %w(,,2)%B%w()%n -- %an <%ae> %aD%n" > changelog && cat changelog
|
|
||||||
- name: run build packet
|
|
||||||
run: cd ${{ github.workspace }}/build && dpkg-buildpackage -us -uc
|
|
||||||
- name: show directory
|
|
||||||
run: ls -l ${{ github.workspace }}
|
|
||||||
- name: Upload artefact (clixon)
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: clixon_${{env.VERSION}}-${{env.RUN_NUMBER}}_amd64.deb
|
|
||||||
path: ${{ github.workspace }}/clixon_${{env.VERSION}}-${{env.RUN_NUMBER}}_amd64.deb
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue