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