diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a77bd6e..59d50be4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -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: @@ -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