Skip to content

Commit 49eb2d0

Browse files
committed
Can we build it?
1 parent 5dabf67 commit 49eb2d0

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

.github/buildomat/build-one.sh

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
set -o errexit
4+
set -o pipefail
5+
set -o xtrace
6+
7+
toml=$1
8+
app_name=$2
9+
images=$3
10+
11+
if [ ! -f $toml ]; then
12+
echo "$toml does not exist"
13+
exit 1
14+
fi
15+
16+
if [ -z ${app_name} ]; then
17+
echo "Missing app name"
18+
exit 1
19+
fi
20+
21+
if [ -z $images ]; then
22+
echo "Missing images"
23+
exit 1
24+
fi
25+
26+
banner build
27+
mkdir /work/hubris
28+
29+
# We intentionally omit rust-toolchain above and install rustup/cargo
30+
# here with no default toolchain since rustup will pickup whatever
31+
# toolchain (probably nightly!) we have in our repo
32+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | /bin/bash -s - \
33+
-y --no-modify-path --default-toolchain none --profile default
34+
35+
cargo xtask dist $toml
36+
for image in $images; do
37+
cp target/${app_name}/dist/$image/build-${app_name}-image-$image.zip \
38+
/work/hubris/build-${app_name}-image-$image.zip
39+
done

.github/buildomat/jobs/gimlet-e.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
#:
3+
#: name = "build-and-test gimlet-e"
4+
#: variety = "basic"
5+
#: target = "ubuntu-22.04"
6+
#: output_rules = [
7+
#: "=/work/hubris/*.zip",
8+
#: ]
9+
10+
exec .github/buildomat/build-one.sh app/gimlet/rev-e.toml gimlet-e default

.github/buildomat/jobs/oxide-rot-1.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
#:
3+
#: name = "build-and-test oxide-rot-1"
4+
#: variety = "basic"
5+
#: target = "ubuntu-22.04"
6+
#: output_rules = [
7+
#: "=/work/hubris/*.zip",
8+
#: ]
9+
10+
exec .github/buildomat/build-one.sh app/oxide-rot-1/app.toml oxide-rot-1 "a b"

0 commit comments

Comments
 (0)