File tree 3 files changed +59
-0
lines changed
3 files changed +59
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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"
You can’t perform that action at this time.
0 commit comments