8
8
jobs :
9
9
build-debian-package-jammy :
10
10
name : build (Ubuntu 22.04)
11
- runs-on : builder
11
+ runs-on : ubuntu-latest
12
12
container :
13
13
image : yanetplatform/builder-lite
14
14
steps :
@@ -23,35 +23,15 @@ jobs:
23
23
export YANET_VERSION_REVISION=${{github.run_number}}
24
24
export YANET_VERSION_HASH=${{github.sha}}
25
25
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
47
27
- uses : actions/upload-artifact@v3
48
28
with :
49
- name : target_debian
50
- path : /export /yanet*.deb
29
+ name : target_debian22.04
30
+ path : /__w/yanet /yanet*.deb
51
31
52
32
build-debian-package-bionic :
53
33
name : build (Ubuntu 18.04)
54
- runs-on : builder
34
+ runs-on : ubuntu-latest
55
35
container :
56
36
image : yanetplatform/builder_ubuntu18.04-lite
57
37
steps :
66
46
export YANET_VERSION_REVISION=${{github.run_number}}
67
47
export YANET_VERSION_HASH=${{github.sha}}
68
48
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
90
50
- uses : actions/upload-artifact@v3
91
51
with :
92
- name : target_debian
93
- path : /export /yanet*.deb
52
+ name : target_debian18.04
53
+ path : /__w/yanet /yanet*.deb
0 commit comments