Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgyKirichenko committed Aug 16, 2024
1 parent b9ff162 commit c0cfe2f
Showing 1 changed file with 8 additions and 48 deletions.
56 changes: 8 additions & 48 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
build-debian-package-jammy:
name: build (Ubuntu 22.04)
runs-on: builder
runs-on: ubuntu-latest
container:
image: yanetplatform/builder-lite
steps:
Expand All @@ -23,35 +23,15 @@ jobs:
export YANET_VERSION_REVISION=${{github.run_number}}
export YANET_VERSION_HASH=${{github.sha}}
export YANET_VERSION_CUSTOM=stable
meson setup --prefix=/target \
-Dtarget=release \
-Darch=corei7,broadwell,knl \
-Dversion_major=$YANET_VERSION_MAJOR \
-Dversion_minor=$YANET_VERSION_MINOR \
-Dversion_revision=$YANET_VERSION_REVISION \
-Dversion_hash=$YANET_VERSION_HASH \
-Dversion_custom=$YANET_VERSION_CUSTOM \
build
meson compile -C build
- run: meson install -C build
- run: |
export YANET_VERSION=${{github.ref_name}}
export YANET_VERSION=${YANET_VERSION#v}
cp -r debian /target/DEBIAN
sed -i "s/__VERSION__/${YANET_VERSION}/g" /target/DEBIAN/control
- run: |
export YANET_VERSION=${{github.ref_name}}
export YANET_VERSION=${YANET_VERSION#v}
mkdir /export
dpkg-deb -b "/target" /export/yanet_${YANET_VERSION}_ubuntu22.04.deb
dpkg-buildpackage -b
- uses: actions/upload-artifact@v3
with:
name: target_debian
path: /export/yanet*.deb
name: target_debian22.04
path: /__w/yanet/yanet*.deb

build-debian-package-bionic:
name: build (Ubuntu 18.04)
runs-on: builder
runs-on: ubuntu-latest
container:
image: yanetplatform/builder_ubuntu18.04-lite
steps:
Expand All @@ -66,28 +46,8 @@ jobs:
export YANET_VERSION_REVISION=${{github.run_number}}
export YANET_VERSION_HASH=${{github.sha}}
export YANET_VERSION_CUSTOM=stable
meson setup --prefix=/target \
-Dtarget=release \
-Darch=corei7,broadwell,knl \
-Dversion_major=$YANET_VERSION_MAJOR \
-Dversion_minor=$YANET_VERSION_MINOR \
-Dversion_revision=$YANET_VERSION_REVISION \
-Dversion_hash=$YANET_VERSION_HASH \
-Dversion_custom=$YANET_VERSION_CUSTOM \
build
meson compile -C build
- run: meson install -C build
- run: |
export YANET_VERSION=${{github.ref_name}}
export YANET_VERSION=${YANET_VERSION#v}
cp -r debian /target/DEBIAN
sed -i "s/__VERSION__/${YANET_VERSION}/g" /target/DEBIAN/control
- run: |
export YANET_VERSION=${{github.ref_name}}
export YANET_VERSION=${YANET_VERSION#v}
mkdir /export
dpkg-deb -b "/target" /export/yanet_${YANET_VERSION}_ubuntu18.04.deb
dpkg-buildpackage -b
- uses: actions/upload-artifact@v3
with:
name: target_debian
path: /export/yanet*.deb
name: target_debian18.04
path: /__w/yanet/yanet*.deb

0 comments on commit c0cfe2f

Please sign in to comment.