Skip to content

Commit c0cfe2f

Browse files
Update release workflow
1 parent b9ff162 commit c0cfe2f

File tree

1 file changed

+8
-48
lines changed

1 file changed

+8
-48
lines changed

Diff for: .github/workflows/release.yml

+8-48
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
build-debian-package-jammy:
1010
name: build (Ubuntu 22.04)
11-
runs-on: builder
11+
runs-on: ubuntu-latest
1212
container:
1313
image: yanetplatform/builder-lite
1414
steps:
@@ -23,35 +23,15 @@ jobs:
2323
export YANET_VERSION_REVISION=${{github.run_number}}
2424
export YANET_VERSION_HASH=${{github.sha}}
2525
export YANET_VERSION_CUSTOM=stable
26-
meson setup --prefix=/target \
27-
-Dtarget=release \
28-
-Darch=corei7,broadwell,knl \
29-
-Dversion_major=$YANET_VERSION_MAJOR \
30-
-Dversion_minor=$YANET_VERSION_MINOR \
31-
-Dversion_revision=$YANET_VERSION_REVISION \
32-
-Dversion_hash=$YANET_VERSION_HASH \
33-
-Dversion_custom=$YANET_VERSION_CUSTOM \
34-
build
35-
meson compile -C build
36-
- run: meson install -C build
37-
- run: |
38-
export YANET_VERSION=${{github.ref_name}}
39-
export YANET_VERSION=${YANET_VERSION#v}
40-
cp -r debian /target/DEBIAN
41-
sed -i "s/__VERSION__/${YANET_VERSION}/g" /target/DEBIAN/control
42-
- run: |
43-
export YANET_VERSION=${{github.ref_name}}
44-
export YANET_VERSION=${YANET_VERSION#v}
45-
mkdir /export
46-
dpkg-deb -b "/target" /export/yanet_${YANET_VERSION}_ubuntu22.04.deb
26+
dpkg-buildpackage -b
4727
- uses: actions/upload-artifact@v3
4828
with:
49-
name: target_debian
50-
path: /export/yanet*.deb
29+
name: target_debian22.04
30+
path: /__w/yanet/yanet*.deb
5131

5232
build-debian-package-bionic:
5333
name: build (Ubuntu 18.04)
54-
runs-on: builder
34+
runs-on: ubuntu-latest
5535
container:
5636
image: yanetplatform/builder_ubuntu18.04-lite
5737
steps:
@@ -66,28 +46,8 @@ jobs:
6646
export YANET_VERSION_REVISION=${{github.run_number}}
6747
export YANET_VERSION_HASH=${{github.sha}}
6848
export YANET_VERSION_CUSTOM=stable
69-
meson setup --prefix=/target \
70-
-Dtarget=release \
71-
-Darch=corei7,broadwell,knl \
72-
-Dversion_major=$YANET_VERSION_MAJOR \
73-
-Dversion_minor=$YANET_VERSION_MINOR \
74-
-Dversion_revision=$YANET_VERSION_REVISION \
75-
-Dversion_hash=$YANET_VERSION_HASH \
76-
-Dversion_custom=$YANET_VERSION_CUSTOM \
77-
build
78-
meson compile -C build
79-
- run: meson install -C build
80-
- run: |
81-
export YANET_VERSION=${{github.ref_name}}
82-
export YANET_VERSION=${YANET_VERSION#v}
83-
cp -r debian /target/DEBIAN
84-
sed -i "s/__VERSION__/${YANET_VERSION}/g" /target/DEBIAN/control
85-
- run: |
86-
export YANET_VERSION=${{github.ref_name}}
87-
export YANET_VERSION=${YANET_VERSION#v}
88-
mkdir /export
89-
dpkg-deb -b "/target" /export/yanet_${YANET_VERSION}_ubuntu18.04.deb
49+
dpkg-buildpackage -b
9050
- uses: actions/upload-artifact@v3
9151
with:
92-
name: target_debian
93-
path: /export/yanet*.deb
52+
name: target_debian18.04
53+
path: /__w/yanet/yanet*.deb

0 commit comments

Comments
 (0)