|
|
… |
10 unchanged lines |
| 11 |
11 |
|
// Cargo.lock changes; until then only the changed crates are compiled. |
| 12 |
12 |
|
sandbox "rust" { |
| 13 |
13 |
|
runtime "microvm" |
| 14 |
|
- |
rootfs "cas://blob/a3b49f36a2ad1838219ea0b7985591e44ac0e6d7f92e9d993d3a3738263fe32e" |
|
14 |
+ |
rootfs "cas://blob/d2d24c2211f00d6ccf89fbee63095ad2a81d0cc9af92d7a0ede9129e18d46e91" |
| 15 |
15 |
|
memory-limit "8GiB" |
| 16 |
16 |
|
cpu-limit 4 |
| 17 |
17 |
|
// Tests serve and connect on 127.0.0.1; nothing leaves the guest. |
|
|
… |
2 unchanged lines |
| 20 |
20 |
|
|
| 21 |
21 |
|
sandbox "rust-small" { |
| 22 |
22 |
|
runtime "microvm" |
| 23 |
|
- |
rootfs "cas://blob/a3b49f36a2ad1838219ea0b7985591e44ac0e6d7f92e9d993d3a3738263fe32e" |
|
23 |
+ |
rootfs "cas://blob/d2d24c2211f00d6ccf89fbee63095ad2a81d0cc9af92d7a0ede9129e18d46e91" |
| 24 |
24 |
|
memory-limit "1GiB" |
| 25 |
25 |
|
cpu-limit 1 |
| 26 |
26 |
|
network "isolated" |
|
|
… |
47 unchanged lines |
| 74 |
74 |
|
source "ephemeral://disk" |
| 75 |
75 |
|
target "/src/target" |
| 76 |
76 |
|
size "24GiB" |
|
77 |
+ |
|
|
78 |
+ |
// Release files for every platform (oxygen#59): scripts/dist.sh in the |
|
79 |
+ |
// build image's cross toolchains. A push runs it only when it touches |
|
80 |
+ |
// these paths (a release moves Cargo.toml's version); "Run pipeline" and |
|
81 |
+ |
// reruns always do. The files are kept as this run's artifacts, named by |
|
82 |
+ |
// its signed receipt, and attached to the release from there, so the |
|
83 |
+ |
// release's trust page shows each as built here. |
|
84 |
+ |
job "dist" { |
|
85 |
+ |
sandbox "rust" |
|
86 |
+ |
depends-on "fmt" |
|
87 |
+ |
scope "Cargo.toml" "scripts/dist.sh" "packaging/**" |
|
88 |
+ |
mount { |
|
89 |
+ |
source "ephemeral://disk" |
|
90 |
+ |
target "/src/target" |
|
91 |
+ |
size "24GiB" |
|
92 |
+ |
} |
|
93 |
+ |
env { |
|
94 |
+ |
DIST_FLAT "/src/target/dist-flat" |
|
95 |
+ |
ZIG_GLOBAL_CACHE_DIR "/src/target/zig-cache" |
|
96 |
+ |
} |
|
97 |
+ |
exec "bash" "scripts/dist.sh" |
|
98 |
+ |
output { |
|
99 |
+ |
artifact "oh-linux-x86_64.tar.gz" { |
|
100 |
+ |
path "/src/target/dist-flat/oh-linux-x86_64.tar.gz" |
|
101 |
+ |
} |
|
102 |
+ |
artifact "oh-linux-arm64.tar.gz" { |
|
103 |
+ |
path "/src/target/dist-flat/oh-linux-arm64.tar.gz" |
|
104 |
+ |
} |
|
105 |
+ |
artifact "oh-linux-riscv64.tar.gz" { |
|
106 |
+ |
path "/src/target/dist-flat/oh-linux-riscv64.tar.gz" |
|
107 |
+ |
} |
|
108 |
+ |
artifact "oh-macos-x86_64.tar.gz" { |
|
109 |
+ |
path "/src/target/dist-flat/oh-macos-x86_64.tar.gz" |
|
110 |
+ |
} |
|
111 |
+ |
artifact "oh-macos-arm64.tar.gz" { |
|
112 |
+ |
path "/src/target/dist-flat/oh-macos-arm64.tar.gz" |
|
113 |
+ |
} |
|
114 |
+ |
artifact "oh-windows-x86_64.zip" { |
|
115 |
+ |
path "/src/target/dist-flat/oh-windows-x86_64.zip" |
|
116 |
+ |
} |
|
117 |
+ |
artifact "oh_amd64.deb" { |
|
118 |
+ |
path "/src/target/dist-flat/oh_amd64.deb" |
|
119 |
+ |
} |
|
120 |
+ |
artifact "oh_arm64.deb" { |
|
121 |
+ |
path "/src/target/dist-flat/oh_arm64.deb" |
|
122 |
+ |
} |
|
123 |
+ |
artifact "oh_riscv64.deb" { |
|
124 |
+ |
path "/src/target/dist-flat/oh_riscv64.deb" |
|
125 |
+ |
} |
|
126 |
+ |
artifact "SHA256SUMS" { |
|
127 |
+ |
path "/src/target/dist-flat/SHA256SUMS" |
|
128 |
+ |
} |
|
129 |
+ |
} |
|
130 |
+ |
} |
| 77 |
131 |
|
} |
| 78 |
132 |
|
env { |
| 79 |
133 |
|
CARGO_INCREMENTAL "0" |
|
|
… |
3 unchanged lines |