Skip to content

Commit 8e573ae

Browse files
committed
add ubuntu kinetic workflow script
1 parent bbad05c commit 8e573ae

File tree

1 file changed

+91
-0
lines changed

1 file changed

+91
-0
lines changed

.github/scripts/build-kinetic.sh

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
#!/usr/bin/env bash
2+
3+
source plugins/envsetup
4+
5+
export OVERRIDER_COMPRESSION_TYPE
6+
export ENABLE_EXIT
7+
export ENABLE_USER_SETUP
8+
9+
SUITE="kinetic"
10+
frn="out/$SUITE-raw"
11+
OVERRIDER_COMPRESSION_TYPE="gzip"
12+
ENABLE_EXIT=true
13+
ENABLE_USER_SETUP=false
14+
PREFIX="${frn}"
15+
16+
additional_setup() {
17+
18+
# GitHub workflow specific
19+
# try to add permissions to $chroot_dir/etc/apt/sources.list
20+
sudo chmod +r+w $chroot_dir/etc/apt/sources.list
21+
22+
cat <<- EOF > $chroot_dir/etc/apt/sources.list
23+
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
24+
# newer versions of the distribution.
25+
deb $MIRROR $SUITE main restricted
26+
# deb-src $MIRROR $SUITE main restricted
27+
28+
## Major bug fix updates produced after the final release of the
29+
## distribution.
30+
deb $MIRROR $SUITE-updates main restricted
31+
# deb-src $MIRROR $SUITE-updates main restricted
32+
33+
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
34+
## team. Also, please note that software in universe WILL NOT receive any
35+
## review or updates from the Ubuntu security team.
36+
deb $MIRROR $SUITE universe
37+
# deb-src $MIRROR $SUITE universe
38+
deb $MIRROR $SUITE-updates universe
39+
# deb-src $MIRROR $SUITE-updates universe
40+
41+
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
42+
## team, and may not be under a free licence. Please satisfy yourself as to
43+
## your rights to use the software. Also, please note that software in
44+
## multiverse WILL NOT receive any review or updates from the Ubuntu
45+
## security team.
46+
deb $MIRROR $SUITE multiverse
47+
# deb-src $MIRROR $SUITE multiverse
48+
deb $MIRROR $SUITE-updates multiverse
49+
# deb-src $MIRROR $SUITE-updates multiverse
50+
51+
## N.B. software from this repository may not have been tested as
52+
## extensively as that contained in the main release, although it includes
53+
## newer versions of some applications which may provide useful features.
54+
## Also, please note that software in backports WILL NOT receive any review
55+
## or updates from the Ubuntu security team.
56+
deb $MIRROR $SUITE-backports main restricted universe multiverse
57+
# deb-src $MIRROR $SUITE-backports main restricted universe multiverse
58+
59+
EOF
60+
# clean any archive if exits
61+
apt-get clean
62+
63+
}
64+
65+
do_build "$PREFIX-arm64" arm64
66+
do_build "$PREFIX-armhf" armhf
67+
do_build "$PREFIX-amd64" amd64
68+
69+
do_compress "$PREFIX-arm64"
70+
do_compress "$PREFIX-armhf"
71+
do_compress "$PREFIX-amd64"
72+
73+
do_unmount "$PREFIX-arm64"
74+
do_unmount "$PREFIX-armhf"
75+
do_unmount "$PREFIX-amd64"
76+
77+
shout "setting up artifacts for GitHub"
78+
msg "creating $SUITE-{arm64,amd64,armhf} directories"
79+
mkdir -pv $SUITE-{arm64,amd64,armhf}
80+
81+
msg "copying tarballs to directories"
82+
cp -rv $frn-arm64*tar* $SUITE-arm64
83+
cp -rv $frn-armhf*tar* $SUITE-armhf
84+
cp -rv $frn-amd64*tar* $SUITE-amd64
85+
86+
msg "calculating sha256sums"
87+
sha256sum $frn-arm64*tar* > $SUITE-arm64/SHA256SUM
88+
sha256sum $frn-armhf*tar* > $SUITE-armhf/SHA256SUM
89+
sha256sum $frn-amd64*tar* > $SUITE-amd64/SHA256SUM
90+
91+
shout "done"

0 commit comments

Comments
 (0)