Commit 5ac76e4 1 parent 55215d5 commit 5ac76e4 Copy full SHA for 5ac76e4
File tree 2 files changed +113
-1
lines changed
2 files changed +113
-1
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,20 @@ jobs:
34
34
fail-fast : false
35
35
matrix :
36
36
architecture : ${{ fromJSON(needs.arches.outputs.arches) }}
37
+ base : ["22", "24"]
37
38
38
39
steps :
39
40
- name : Check out code
40
41
uses : actions/checkout@v4
41
42
with :
42
43
fetch-depth : 0 # needed for version determination
43
44
45
+ - name : Tweak the snapcraft.yaml
46
+ run : |
47
+ if [ "${{ matrix.base }}" == "24" ]; then
48
+ mv snap/core24~snapcraft.yaml snap/snapcraft.yaml
49
+ fi
50
+
44
51
- name : Build and publish the snap
45
52
uses : canonical/actions/build-snap@release
46
53
with :
49
56
launchpad-credentials : ${{ secrets.LAUNCHPAD_CREDENTIALS }}
50
57
launchpad-accept-public-upload : true
51
58
publish : ${{ github.event_name == 'pull_request' && github.repository == github.event.pull_request.head.repo.full_name }}
52
- publish-channel : 22 /edge/pr${{ github.event.number }}
59
+ publish-channel : ${{ matrix.base }} /edge/pr${{ github.event.number }}
53
60
54
61
snap :
55
62
# Only run if we have access to secrets.
Original file line number Diff line number Diff line change
1
+ name : mir-libs
2
+ base : core24
3
+ build-base : devel
4
+ summary : The fast, open and secure display server for any device - build environment
5
+ description : |
6
+ Mir is a display server running on linux systems, with a focus on efficiency,
7
+ robust operation and a well-defined driver model.
8
+
9
+ This snap contains the build environment necessary to build Mir display servers.
10
+
11
+ confinement : strict
12
+ adopt-info : mir
13
+
14
+ parts :
15
+ mir :
16
+ plugin : cmake
17
+ source : .
18
+ cmake-parameters :
19
+ - -DCMAKE_INSTALL_PREFIX=/usr
20
+ - -DMIR_ENABLE_WLCS_TESTS=OFF
21
+ - -DMIR_PLATFORM='gbm-kms;eglstream-kms;x11;wayland'
22
+ build-packages :
23
+ - build-essential
24
+ - eglexternalplatform-dev
25
+ - git
26
+ - libboost-date-time-dev
27
+ - libboost-filesystem-dev
28
+ - libboost-iostreams-dev
29
+ - libboost-program-options-dev
30
+ - libcapnp-dev
31
+ - libdrm-dev
32
+ - libegl1-mesa-dev
33
+ - libepoxy-dev
34
+ - libfreetype-dev
35
+ - libgbm-dev
36
+ - libglm-dev
37
+ - libgtest-dev
38
+ - libinput-dev
39
+ - liblttng-ust-dev
40
+ - libnvidia-egl-wayland-dev
41
+ - libudev-dev
42
+ - libumockdev-dev
43
+ - libwayland-dev
44
+ - libxcb-composite0-dev
45
+ - libxcb-randr0-dev
46
+ - libx11-xcb-dev
47
+ - libxcursor-dev
48
+ - libxkbcommon-dev
49
+ - libxkbcommon-x11-dev
50
+ - libxml++2.6-dev
51
+ - libyaml-cpp-dev
52
+ - nettle-dev
53
+ - python3-pil
54
+ - systemtap-sdt-dev
55
+ stage-packages :
56
+ - libboost-filesystem1.83.0
57
+ - libboost-iostreams1.83.0
58
+ - libboost-program-options1.83.0
59
+ - libcapnp-1.0.1
60
+ - libdrm2
61
+ - libegl1
62
+ - libepoxy0
63
+ - libevdev2
64
+ - libfreetype6
65
+ - libgbm1
66
+ - libgles2
67
+ - libglibmm-2.4-1t64
68
+ - libglvnd0
69
+ - libgudev-1.0-0
70
+ - libicu74
71
+ - libinput10
72
+ - liblttng-ust1t64
73
+ - libmtdev1t64
74
+ - libnuma1
75
+ - libnvidia-egl-wayland1
76
+ - libpng16-16t64
77
+ - libsigc++-2.0-0v5
78
+ - liburcu8t64
79
+ - libwacom9
80
+ - libwayland-client0
81
+ - libwayland-egl1
82
+ - libwayland-server0
83
+ - libx11-6
84
+ - libxau6
85
+ - libxcb-composite0
86
+ - libxcb-randr0
87
+ - libxcb-render0
88
+ - libxcb-xfixes0
89
+ - libxcb1
90
+ - libx11-xcb1
91
+ - libxcursor1
92
+ - libxdmcp6
93
+ - libxfixes3
94
+ - libxkbcommon0
95
+ - libxkbcommon-x11-0
96
+ - libxml++2.6-2v5
97
+ - libxml2
98
+ - libxrender1
99
+ - libyaml-cpp0.8
100
+ override-pull : |
101
+ craftctl default
102
+ # work around https://github.com/diddlesnaps/snapcraft-multiarch-action/issues/22
103
+ git config --global --add safe.directory ${CRAFT_PART_SRC}
104
+ craftctl set version=$( git describe | awk -F- '{ gsub(/^v/, "", $1); printf $1; if ($2) { printf "+dev" $2 "-" $3 } }' )
105
+ craftctl set grade=$( [[ $( git describe ) =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo stable || echo devel )
You can’t perform that action at this time.
0 commit comments